Fix LLMQ dkgBadVotesThreshold parameter in regtest and devnet

This commit is contained in:
Alexander Block 2020-03-30 16:54:55 +02:00
parent d3586e1df0
commit 3e3eba63e2

View File

@ -122,6 +122,7 @@ void CChainParams::UpdateLLMQTestParams(int size, int threshold) {
params.size = size; params.size = size;
params.minSize = threshold; params.minSize = threshold;
params.threshold = threshold; params.threshold = threshold;
params.dkgBadVotesThreshold = threshold;
} }
void CChainParams::UpdateLLMQDevnetParams(int size, int threshold) void CChainParams::UpdateLLMQDevnetParams(int size, int threshold)
@ -130,6 +131,7 @@ void CChainParams::UpdateLLMQDevnetParams(int size, int threshold)
params.size = size; params.size = size;
params.minSize = threshold; params.minSize = threshold;
params.threshold = threshold; params.threshold = threshold;
params.dkgBadVotesThreshold = threshold;
} }
static CBlock FindDevNetGenesisBlock(const Consensus::Params& params, const CBlock &prevBlock, const CAmount& reward) static CBlock FindDevNetGenesisBlock(const Consensus::Params& params, const CBlock &prevBlock, const CAmount& reward)
@ -168,7 +170,7 @@ static Consensus::LLMQParams llmq_test = {
.dkgPhaseBlocks = 2, .dkgPhaseBlocks = 2,
.dkgMiningWindowStart = 10, // dkgPhaseBlocks * 5 = after finalization .dkgMiningWindowStart = 10, // dkgPhaseBlocks * 5 = after finalization
.dkgMiningWindowEnd = 18, .dkgMiningWindowEnd = 18,
.dkgBadVotesThreshold = 8, .dkgBadVotesThreshold = 2,
.signingActiveQuorumCount = 2, // just a few ones to allow easier testing .signingActiveQuorumCount = 2, // just a few ones to allow easier testing