aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-01-20 14:27:27 -0500
committerCarl Dong <contact@carldong.me>2021-01-28 14:15:26 -0500
commitb8e95658d5909f93dfc7d1e6532661db8919e5b7 (patch)
tree22715e803397485d1908234732858c558aa6396f /src/validation.h
parent0cdad753903640ff4240b715dec9d62f68e51407 (diff)
downloadbitcoin-b8e95658d5909f93dfc7d1e6532661db8919e5b7.tar.xz
style-only: Make TestBlockValidity signature readable
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h
index a4c60261ee..39fc98d3b4 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -283,7 +283,13 @@ bool UndoReadFromDisk(CBlockUndo& blockundo, const CBlockIndex* pindex);
bool CheckBlock(const CBlock& block, BlockValidationState& state, const Consensus::Params& consensusParams, bool fCheckPOW = true, bool fCheckMerkleRoot = true);
/** Check a block is completely valid from start to finish (only works on top of our current best block) */
-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);
+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);
/** Check whether witness commitments are required for a block, and whether to enforce NULLDUMMY (BIP 147) rules.
* Note that transaction witness validation rules are always enforced when P2SH is enforced. */