re-enable add checks for CCheckQueueControl in connectblock

This commit is contained in:
Tom Trevethan 2026-05-19 14:17:41 +01:00
parent 0916a2acfb
commit 5485fde8e1
No known key found for this signature in database

View file

@ -3029,11 +3029,8 @@ bool Chainstate::ConnectBlock(const CBlock& block, BlockValidationState& state,
tx_state.GetDebugMessage() + " in transaction " + tx.GetHash().ToString());
break;
}
// control.Add(vChecks);
//
// if (!MoneyRange(fee_map)) {
// LogPrintf("ERROR: %s: accumulated fee in the block out of range.\n", __func__);
// return state.Invalid(BlockValidationResult::BLOCK_CONSENSUS, "bad-txns-accumulated-fee-outofrange");
control.Add(vChecks);
if (!MoneyRange(fee_map)) {
state.Invalid(BlockValidationResult::BLOCK_CONSENSUS, "bad-txns-accumulated-fee-outofrange",
"accumulated fee in the block out of range");