diff options
| author | Shaul Kfir <[email protected]> | 2015-03-16 21:36:43 -0400 |
|---|---|---|
| committer | Shaul Kfir <[email protected]> | 2015-06-30 15:59:11 -0400 |
| commit | a651403e09ccc9ac0a3322e880d6543dd51a14bd (patch) | |
| tree | e138302775a76f9667a56fa5ea0e38e7fa1e2f89 /src/main.cpp | |
| parent | Merge pull request #6354 (diff) | |
| download | discoin-a651403e09ccc9ac0a3322e880d6543dd51a14bd.tar.xz discoin-a651403e09ccc9ac0a3322e880d6543dd51a14bd.zip | |
Add absurdly high fee message to validation state (for RPC propagation)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6c4cfe75a..f67f1fd0d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1031,9 +1031,10 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa } if (fRejectAbsurdFee && nFees > ::minRelayTxFee.GetFee(nSize) * 10000) - return error("AcceptToMemoryPool: absurdly high fees %s, %d > %d", - hash.ToString(), - nFees, ::minRelayTxFee.GetFee(nSize) * 10000); + return state.Invalid(error("AcceptToMemoryPool: absurdly high fees %s, %d > %d", + hash.ToString(), + nFees, ::minRelayTxFee.GetFee(nSize) * 10000), + REJECT_HIGHFEE, "absurdly-high-fee"); // Check against previous transactions // This is done last to help prevent CPU exhaustion denial-of-service attacks. |