mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
chore: clang format/reword/typos
This commit is contained in:
parent
5fd7b07ddc
commit
6fbd128947
@ -120,8 +120,11 @@ bool CAssetUnlockPayload::VerifySig(const llmq::CQuorumManager& qman, const uint
|
|||||||
const auto& llmq_params_opt = Params().GetLLMQ(llmqType);
|
const auto& llmq_params_opt = Params().GetLLMQ(llmqType);
|
||||||
assert(llmq_params_opt.has_value());
|
assert(llmq_params_opt.has_value());
|
||||||
|
|
||||||
// after deployment WITHDRAWALS activated we check not to quorum, but all active quorums + 1 the latest inactive
|
// We check two quorums before DEPLOYMENT_WITHDRAWALS activation
|
||||||
const int quorums_to_scan = DeploymentActiveAt(*pindexTip, Params().GetConsensus(), Consensus::DEPLOYMENT_WITHDRAWALS) ? (llmq_params_opt->signingActiveQuorumCount + 1) : 2;
|
// and "all active quorums + 1 the latest inactive" after activation.
|
||||||
|
const int quorums_to_scan = DeploymentActiveAt(*pindexTip, Params().GetConsensus(), Consensus::DEPLOYMENT_WITHDRAWALS)
|
||||||
|
? (llmq_params_opt->signingActiveQuorumCount + 1)
|
||||||
|
: 2;
|
||||||
const auto quorums = qman.ScanQuorums(llmqType, pindexTip, quorums_to_scan);
|
const auto quorums = qman.ScanQuorums(llmqType, pindexTip, quorums_to_scan);
|
||||||
|
|
||||||
if (bool isActive = std::any_of(quorums.begin(), quorums.end(), [&](const auto &q) { return q->qc->quorumHash == quorumHash; }); !isActive) {
|
if (bool isActive = std::any_of(quorums.begin(), quorums.end(), [&](const auto &q) { return q->qc->quorumHash == quorumHash; }); !isActive) {
|
||||||
|
@ -162,7 +162,7 @@ class BlockchainTest(BitcoinTestFramework):
|
|||||||
'bip9': {
|
'bip9': {
|
||||||
'status': 'defined',
|
'status': 'defined',
|
||||||
'start_time': 0,
|
'start_time': 0,
|
||||||
'timeout': 9223372036854775807, # testdummy does not have a timeout so is set to the max int64 value
|
'timeout': 9223372036854775807, # "withdrawals" does not have a timeout so is set to the max int64 value
|
||||||
'since': 0,
|
'since': 0,
|
||||||
'min_activation_height': 0,
|
'min_activation_height': 0,
|
||||||
'ehf': True
|
'ehf': True
|
||||||
|
Loading…
Reference in New Issue
Block a user