Skip to content

Commit f34fa71

Browse files
TheBlueMattsdaftuar
authored andcommitted
Drop obsolete sigops comment
This comment was confusing and incorrect when first added ("invalid rather than merely non-standard" has the opposite meaning of what is actually the case), and was also not updated after segwit with the correct variable names. Delete it since the code reads just fine on its own. Co-authored by: Anthony Towns <[email protected]> Suhas Daftuar <[email protected]>
1 parent 0e9cb2d commit f34fa71

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/validation.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -721,11 +721,6 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
721721
fSpendsCoinbase, nSigOpsCost, lp);
722722
unsigned int nSize = entry.GetTxSize();
723723

724-
// Check that the transaction doesn't have an excessive number of
725-
// sigops, making it impossible to mine. Since the coinbase transaction
726-
// itself can contain sigops MAX_STANDARD_TX_SIGOPS is less than
727-
// MAX_BLOCK_SIGOPS; we still consider this an invalid rather than
728-
// merely non-standard transaction.
729724
if (nSigOpsCost > MAX_STANDARD_TX_SIGOPS_COST)
730725
return state.DoS(0, false, REJECT_NONSTANDARD, "bad-txns-too-many-sigops", false,
731726
strprintf("%d", nSigOpsCost));

0 commit comments

Comments
 (0)