Skip to content

Commit 08331bb

Browse files
committed
fix: apply suggestions
1 parent 3c3489d commit 08331bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2445,7 +2445,7 @@ bool CChainState::ConnectBlock(const CBlock& block, BlockValidationState& state,
24452445
int64_t nTime5_3 = GetTimeMicros(); nTimeCreditPool += nTime5_3 - nTime5_2;
24462446
LogPrint(BCLog::BENCHMARK, " - CheckCreditPoolDiffForBlock: %.2fms [%.2fs (%.2fms/blk)]\n", MILLI * (nTime5_3 - nTime5_2), nTimeCreditPool * MICRO, nTimeCreditPool * MILLI / nBlocksTotal);
24472447

2448-
bool check_superblock = m_clhandler->GetBestChainLock().getHeight() < pindex->nHeight;
2448+
const bool check_superblock = m_clhandler->GetBestChainLock().getHeight() < pindex->nHeight;
24492449

24502450
if (!m_chain_helper->mn_payments->IsBlockValueValid(block, pindex->nHeight, blockSubsidy + feeReward, strError, check_superblock)) {
24512451
// NOTE: Do not punish, the node might be missing governance data

test/functional/feature_governance_cl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) 2018-2024 The Dash Core developers
2+
# Copyright (c) 2024 The Dash Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Tests governance checks can be skipped for blocks covered by the best chainlock."""

0 commit comments

Comments
 (0)