@@ -384,7 +384,7 @@ static void UpdateMempoolForReorg(CTxMemPool& mempool, DisconnectedBlockTransact
384
384
TxValidationState stateDummy;
385
385
if (!fAddToMempool || (*it)->IsCoinBase () ||
386
386
!AcceptToMemoryPool (mempool, stateDummy, *it,
387
- nullptr /* plTxnReplaced */ , true /* bypass_limits */ , 0 /* nAbsurdFee */ )) {
387
+ nullptr /* plTxnReplaced */ , true /* bypass_limits */ )) {
388
388
// If the transaction doesn't make it in to the mempool, remove any
389
389
// transactions that depend on it (which would now be orphans).
390
390
mempool.removeRecursive (**it, MemPoolRemovalReason::REORG);
@@ -463,7 +463,6 @@ class MemPoolAccept
463
463
const int64_t m_accept_time;
464
464
std::list<CTransactionRef>* m_replaced_transactions;
465
465
const bool m_bypass_limits;
466
- const CAmount& m_absurd_fee;
467
466
/*
468
467
* Return any outpoints which were not previously present in the coins
469
468
* cache, but were added as a result of validating the tx for mempool
@@ -558,7 +557,6 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
558
557
TxValidationState &state = args.m_state ;
559
558
const int64_t nAcceptTime = args.m_accept_time ;
560
559
const bool bypass_limits = args.m_bypass_limits ;
561
- const CAmount& nAbsurdFee = args.m_absurd_fee ;
562
560
std::vector<COutPoint>& coins_to_uncache = args.m_coins_to_uncache ;
563
561
564
562
// Alias what we need out of ws
@@ -729,9 +727,6 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
729
727
// blocks
730
728
if (!bypass_limits && !CheckFeeRate (nSize, nModifiedFees, state)) return false ;
731
729
732
- if (nAbsurdFee && nFees > nAbsurdFee)
733
- LogPrintf (" Ignoring Absurdfee\n " );
734
-
735
730
const CTxMemPool::setEntries setIterConflicting = m_pool.GetIterSet (setConflicts);
736
731
// Calculate in-mempool ancestors, up to a limit.
737
732
if (setConflicts.size () == 1 ) {
@@ -1064,10 +1059,10 @@ bool MemPoolAccept::AcceptSingleTransaction(const CTransactionRef& ptx, ATMPArgs
1064
1059
/* * (try to) add transaction to memory pool with a specified acceptance time **/
1065
1060
static bool AcceptToMemoryPoolWithTime (const CChainParams& chainparams, CTxMemPool& pool, TxValidationState &state, const CTransactionRef &tx,
1066
1061
int64_t nAcceptTime, std::list<CTransactionRef>* plTxnReplaced,
1067
- bool bypass_limits, const CAmount nAbsurdFee, bool test_accept, CAmount* fee_out=nullptr ) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
1062
+ bool bypass_limits, bool test_accept, CAmount* fee_out=nullptr ) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
1068
1063
{
1069
1064
std::vector<COutPoint> coins_to_uncache;
1070
- MemPoolAccept::ATMPArgs args { chainparams, state, nAcceptTime, plTxnReplaced, bypass_limits, nAbsurdFee, coins_to_uncache, test_accept, fee_out };
1065
+ MemPoolAccept::ATMPArgs args { chainparams, state, nAcceptTime, plTxnReplaced, bypass_limits, coins_to_uncache, test_accept, fee_out };
1071
1066
bool res = MemPoolAccept (pool).AcceptSingleTransaction (tx, args);
1072
1067
if (!res) {
1073
1068
// Remove coins that were not present in the coins cache before calling ATMPW;
@@ -1086,10 +1081,10 @@ static bool AcceptToMemoryPoolWithTime(const CChainParams& chainparams, CTxMemPo
1086
1081
1087
1082
bool AcceptToMemoryPool (CTxMemPool& pool, TxValidationState &state, const CTransactionRef &tx,
1088
1083
std::list<CTransactionRef>* plTxnReplaced,
1089
- bool bypass_limits, const CAmount nAbsurdFee, bool test_accept, CAmount* fee_out)
1084
+ bool bypass_limits, bool test_accept, CAmount* fee_out)
1090
1085
{
1091
1086
const CChainParams& chainparams = Params ();
1092
- return AcceptToMemoryPoolWithTime (chainparams, pool, state, tx, GetTime (), plTxnReplaced, bypass_limits, nAbsurdFee, test_accept, fee_out);
1087
+ return AcceptToMemoryPoolWithTime (chainparams, pool, state, tx, GetTime (), plTxnReplaced, bypass_limits, test_accept, fee_out);
1093
1088
}
1094
1089
1095
1090
CTransactionRef GetTransaction (const CBlockIndex* const block_index, const CTxMemPool* const mempool, const uint256& hash, const Consensus::Params& consensusParams, uint256& hashBlock)
@@ -5078,7 +5073,7 @@ bool LoadMempool(CTxMemPool& pool)
5078
5073
if (nTime + nExpiryTimeout > nNow) {
5079
5074
LOCK (cs_main);
5080
5075
AcceptToMemoryPoolWithTime (chainparams, pool, state, tx, nTime,
5081
- nullptr /* plTxnReplaced */ , false /* bypass_limits */ , 0 /* nAbsurdFee */ ,
5076
+ nullptr /* plTxnReplaced */ , false /* bypass_limits */ ,
5082
5077
false /* test_accept */ );
5083
5078
if (state.IsValid ()) {
5084
5079
++count;
0 commit comments