diff --git a/src/validation.cpp b/src/validation.cpp index 5ad2ebdcd7e..13dbe83f806 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4062,6 +4062,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) {