diff --git a/src/validation.cpp b/src/validation.cpp index 3e8a7cf520..69a4ad449a 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4094,6 +4094,8 @@ 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 witness and p2sh sigops. unsigned int nSigOps = 0; for (const auto& tx : block.vtx) {