mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Fix LLMQ dkgBadVotesThreshold parameter in regtest and devnet
This commit is contained in:
parent
d3586e1df0
commit
3e3eba63e2
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user