aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2019-01-18 23:14:21 +1000
committerSuhas Daftuar <sdaftuar@gmail.com>2019-05-02 11:00:19 -0400
commitf34fa719cf33a51d11f1d2219cbe73ccff6fd697 (patch)
treecc2cf08a5e26978f1962a35a0b267083fe262f67 /src/validation.cpp
parent0e9cb2d24dbf982cd13d568c9318308b90b024ea (diff)
downloadbitcoin-f34fa719cf33a51d11f1d2219cbe73ccff6fd697.tar.xz
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 <aj@erisian.com.au> Suhas Daftuar <sdaftuar@gmail.com>
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index be6257ea28..ad2d327e30 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -721,11 +721,6 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
fSpendsCoinbase, nSigOpsCost, lp);
unsigned int nSize = entry.GetTxSize();
- // Check that the transaction doesn't have an excessive number of
- // sigops, making it impossible to mine. Since the coinbase transaction
- // itself can contain sigops MAX_STANDARD_TX_SIGOPS is less than
- // MAX_BLOCK_SIGOPS; we still consider this an invalid rather than
- // merely non-standard transaction.
if (nSigOpsCost > MAX_STANDARD_TX_SIGOPS_COST)
return state.DoS(0, false, REJECT_NONSTANDARD, "bad-txns-too-many-sigops", false,
strprintf("%d", nSigOpsCost));