diff options
author | gzhao408 <gzhao408@berkeley.edu> | 2020-07-25 10:05:15 -0700 |
---|---|---|
committer | gzhao408 <gzhao408@berkeley.edu> | 2020-10-05 04:54:05 -0700 |
commit | 8f1290c60159a3171c27250bc95687548c5c1b84 (patch) | |
tree | eea0e386fb7add4d19609a8c2acb9ea442882a45 /src/validation.cpp | |
parent | 3487e421a7fef4b28381efcf21a7e38483946cec (diff) |
[rpc/node] check for high fee before ATMP in clients
Check absurd fee in BroadcastTransaction and RPC,
return TransactionError::MAX_FEE_EXCEEDED instead
of TxValidationResult::TX_NOT_STANDARD because this
is client preference, not a node-wide policy.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index e9c0607ced..5d4686fbea 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -730,8 +730,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws) if (!bypass_limits && !CheckFeeRate(nSize, nModifiedFees, state)) return false; if (nAbsurdFee && nFees > nAbsurdFee) - return state.Invalid(TxValidationResult::TX_NOT_STANDARD, - "absurdly-high-fee", strprintf("%d > %d", nFees, nAbsurdFee)); + LogPrintf("Ignoring Absurdfee\n"); const CTxMemPool::setEntries setIterConflicting = m_pool.GetIterSet(setConflicts); // Calculate in-mempool ancestors, up to a limit. |