Skip to content

Commit b8e9565

Browse files
committed
style-only: Make TestBlockValidity signature readable
1 parent 0cdad75 commit b8e9565

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/validation.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3808,7 +3808,13 @@ bool ChainstateManager::ProcessNewBlock(const CChainParams& chainparams, const s
38083808
return true;
38093809
}
38103810

3811-
bool TestBlockValidity(BlockValidationState& state, const CChainParams& chainparams, CChainState& chainstate, const CBlock& block, CBlockIndex* pindexPrev, bool fCheckPOW, bool fCheckMerkleRoot)
3811+
bool TestBlockValidity(BlockValidationState& state,
3812+
const CChainParams& chainparams,
3813+
CChainState& chainstate,
3814+
const CBlock& block,
3815+
CBlockIndex* pindexPrev,
3816+
bool fCheckPOW,
3817+
bool fCheckMerkleRoot)
38123818
{
38133819
AssertLockHeld(cs_main);
38143820
assert(std::addressof(::ChainstateActive()) == std::addressof(chainstate));

src/validation.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,13 @@ bool UndoReadFromDisk(CBlockUndo& blockundo, const CBlockIndex* pindex);
283283
bool CheckBlock(const CBlock& block, BlockValidationState& state, const Consensus::Params& consensusParams, bool fCheckPOW = true, bool fCheckMerkleRoot = true);
284284

285285
/** Check a block is completely valid from start to finish (only works on top of our current best block) */
286-
bool TestBlockValidity(BlockValidationState& state, const CChainParams& chainparams, CChainState& chainstate, const CBlock& block, CBlockIndex* pindexPrev, bool fCheckPOW = true, bool fCheckMerkleRoot = true) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
286+
bool TestBlockValidity(BlockValidationState& state,
287+
const CChainParams& chainparams,
288+
CChainState& chainstate,
289+
const CBlock& block,
290+
CBlockIndex* pindexPrev,
291+
bool fCheckPOW = true,
292+
bool fCheckMerkleRoot = true) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
287293

288294
/** Check whether witness commitments are required for a block, and whether to enforce NULLDUMMY (BIP 147) rules.
289295
* Note that transaction witness validation rules are always enforced when P2SH is enforced. */

0 commit comments

Comments
 (0)