This commit is contained in:
Sjors Provoost 2025-04-29 11:57:34 +02:00 committed by GitHub
commit 954120abbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4097,6 +4097,7 @@ bool CheckBlock(const CBlock& block, BlockValidationState& state, const Consensu
strprintf("Transaction check failed (tx hash %s) %s", tx->GetHash().ToString(), tx_state.GetDebugMessage()));
}
}
// This underestimates the number of sigops, because unlike ConnectBlock it does not count the witness:
unsigned int nSigOps = 0;
for (const auto& tx : block.vtx)
{