Merge 0ac19a98f329fe8952f394509a7a29775ab805b0 into db2c57ae9eebdb75c58cd165ac929919969c19a9

This commit is contained in:
Sjors Provoost 2025-03-17 10:34:53 +01:00 committed by GitHub
commit 18e347f197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4094,6 +4094,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)
{