aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2019-01-18 23:14:21 +1000
committerSuhas Daftuar <[email protected]>2019-05-02 11:00:19 -0400
commitf34fa719cf33a51d11f1d2219cbe73ccff6fd697 (patch)
treecc2cf08a5e26978f1962a35a0b267083fe262f67 /src/validation.cpp
parentMerge #15773: test: Add BitcoinTestFramework::sync_* methods (diff)
downloaddiscoin-f34fa719cf33a51d11f1d2219cbe73ccff6fd697.tar.xz
discoin-f34fa719cf33a51d11f1d2219cbe73ccff6fd697.zip
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]>
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 be6257ea2..ad2d327e3 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));