Skip to content

Commit 2398f23

Browse files
authored
feat: support Core 17 LLMQ params (#256)
1 parent baaed06 commit 2398f23

File tree

3 files changed

+182
-326
lines changed

3 files changed

+182
-326
lines changed

lib/deterministicmnlist/QuorumEntry.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,13 @@ QuorumEntry.getParams = function getParams(llmqType) {
366366
params.maximumActiveQuorumsCount = 2;
367367
return params;
368368
case constants.LLMQ_TYPES.LLMQ_TYPE_LLMQ_DEVNET:
369+
// @todo needs to be removed after 18 upgrade
370+
if (QuorumEntry.isCore17) {
371+
params.size = 10;
372+
params.threshold = 3;
373+
params.maximumActiveQuorumsCount = 7;
374+
return params;
375+
}
369376
params.size = 12;
370377
params.threshold = 6;
371378
params.maximumActiveQuorumsCount = 4;
@@ -566,6 +573,13 @@ QuorumEntry.prototype.calculateHash = function calculateHash() {
566573
return Hash.sha256sha256(this.toBufferForHashing()).reverse();
567574
};
568575

576+
/**
577+
* @todo Remove after Core 18 upgrade
578+
*
579+
* @type {boolean}
580+
*/
581+
QuorumEntry.isCore17 = false;
582+
569583
/**
570584
* Creates a copy of QuorumEntry
571585
* @return {QuorumEntry}

test/deterministicmnlist/SimplifiedMNList.integration.js

Lines changed: 0 additions & 326 deletions
This file was deleted.

0 commit comments

Comments
 (0)