diff options
| author | Brian Deery <[email protected]> | 2016-11-14 00:38:07 -0600 |
|---|---|---|
| committer | Brian Deery <[email protected]> | 2016-11-14 00:38:07 -0600 |
| commit | 07ede5d711e7fd601770c1f57110830bf540f0bc (patch) | |
| tree | 557c01d97dbdb02ac71d6a14052c777993d70b66 /src/policy/policy.cpp | |
| parent | Merge #9124: Use better name for local variable to prevent -Wshadow compiler ... (diff) | |
| download | discoin-07ede5d711e7fd601770c1f57110830bf540f0bc.tar.xz discoin-07ede5d711e7fd601770c1f57110830bf540f0bc.zip | |
update comments for tx weight
Diffstat (limited to 'src/policy/policy.cpp')
| -rw-r--r-- | src/policy/policy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp index a3eee474a..3ad1ff7ba 100644 --- a/src/policy/policy.cpp +++ b/src/policy/policy.cpp @@ -66,7 +66,7 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason, const bool witnes // Extremely large transactions with lots of inputs can cost the network // almost as much to process as they cost the sender in fees, because // computing signature hashes is O(ninputs*txsize). Limiting transactions - // to MAX_STANDARD_TX_SIZE mitigates CPU exhaustion attacks. + // to MAX_STANDARD_TX_WEIGHT mitigates CPU exhaustion attacks. unsigned int sz = GetTransactionWeight(tx); if (sz >= MAX_STANDARD_TX_WEIGHT) { reason = "tx-size"; |