diff --git a/lib/constants/index.js b/lib/constants/index.js index c0151a29d..35774226d 100644 --- a/lib/constants/index.js +++ b/lib/constants/index.js @@ -92,6 +92,9 @@ module.exports = { // for devnet testing only // 12 members, 8 (67%) threshold, one per hour LLMQ_DEVNET_PLATFORM: 107, + // for testing only + // 1 member. + LLMQ_SINGLE_NODE: 111, }, // when selecting a quorum for signing and verification, we use this offset as diff --git a/lib/deterministicmnlist/QuorumEntry.js b/lib/deterministicmnlist/QuorumEntry.js index 217df121f..8e8c2491f 100644 --- a/lib/deterministicmnlist/QuorumEntry.js +++ b/lib/deterministicmnlist/QuorumEntry.js @@ -407,6 +407,11 @@ QuorumEntry.getParams = function getParams(llmqType) { params.threshold = 8; params.maximumActiveQuorumsCount = 4; return params; + case constants.LLMQ_TYPES.LLMQ_SINGLE_NODE: + params.size = 1; + params.threshold = 1; + params.maximumActiveQuorumsCount = 2; + return params; default: throw new Error(`Invalid llmq type ${llmqType}`); } diff --git a/lib/deterministicmnlist/SimplifiedMNList.js b/lib/deterministicmnlist/SimplifiedMNList.js index b5c8aab78..e041fcd22 100644 --- a/lib/deterministicmnlist/SimplifiedMNList.js +++ b/lib/deterministicmnlist/SimplifiedMNList.js @@ -398,6 +398,7 @@ SimplifiedMNList.prototype.getLLMQTypes = function getLLMQTypes() { constants.LLMQ_TYPES.LLMQ_TYPE_TEST_INSTANTSEND, constants.LLMQ_TYPES.LLMQ_TYPE_TEST_DIP0024, constants.LLMQ_TYPES.LLMQ_TEST_PLATFORM, + constants.LLMQ_TYPES.LLMQ_SINGLE_NODE, ]; return llmqTypes; }