refactor: testBlockValidity make out argument last

This commit is contained in:
Sjors Provoost
2024-06-25 13:33:35 +02:00
parent 83a9bef0e2
commit 75ce7637ad
3 changed files with 6 additions and 5 deletions

View File

@@ -870,7 +870,7 @@ public:
return context()->mempool->GetTransactionsUpdated();
}
bool testBlockValidity(BlockValidationState& state, const CBlock& block, bool check_merkle_root) override
bool testBlockValidity(const CBlock& block, bool check_merkle_root, BlockValidationState& state) override
{
LOCK(::cs_main);
return TestBlockValidity(state, chainman().GetParams(), chainman().ActiveChainstate(), block, chainman().ActiveChain().Tip(), /*fCheckPOW=*/false, check_merkle_root);