@@ -384,7 +384,7 @@ static void UpdateMempoolForReorg(CTxMemPool& mempool, DisconnectedBlockTransact
384384 TxValidationState stateDummy;
385385 if (!fAddToMempool || (*it)->IsCoinBase () ||
386386 !AcceptToMemoryPool (mempool, stateDummy, *it,
387- nullptr /* plTxnReplaced */ , true /* bypass_limits */ , 0 /* nAbsurdFee */ )) {
387+ nullptr /* plTxnReplaced */ , true /* bypass_limits */ )) {
388388 // If the transaction doesn't make it in to the mempool, remove any
389389 // transactions that depend on it (which would now be orphans).
390390 mempool.removeRecursive (**it, MemPoolRemovalReason::REORG);
@@ -463,7 +463,6 @@ class MemPoolAccept
463463 const int64_t m_accept_time;
464464 std::list<CTransactionRef>* m_replaced_transactions;
465465 const bool m_bypass_limits;
466- const CAmount& m_absurd_fee;
467466 /*
468467 * Return any outpoints which were not previously present in the coins
469468 * cache, but were added as a result of validating the tx for mempool
@@ -558,7 +557,6 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
558557 TxValidationState &state = args.m_state ;
559558 const int64_t nAcceptTime = args.m_accept_time ;
560559 const bool bypass_limits = args.m_bypass_limits ;
561- const CAmount& nAbsurdFee = args.m_absurd_fee ;
562560 std::vector<COutPoint>& coins_to_uncache = args.m_coins_to_uncache ;
563561
564562 // Alias what we need out of ws
@@ -729,9 +727,6 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
729727 // blocks
730728 if (!bypass_limits && !CheckFeeRate (nSize, nModifiedFees, state)) return false ;
731729
732- if (nAbsurdFee && nFees > nAbsurdFee)
733- LogPrintf (" Ignoring Absurdfee\n " );
734-
735730 const CTxMemPool::setEntries setIterConflicting = m_pool.GetIterSet (setConflicts);
736731 // Calculate in-mempool ancestors, up to a limit.
737732 if (setConflicts.size () == 1 ) {
@@ -1064,10 +1059,10 @@ bool MemPoolAccept::AcceptSingleTransaction(const CTransactionRef& ptx, ATMPArgs
10641059/* * (try to) add transaction to memory pool with a specified acceptance time **/
10651060static bool AcceptToMemoryPoolWithTime (const CChainParams& chainparams, CTxMemPool& pool, TxValidationState &state, const CTransactionRef &tx,
10661061 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)
10681063{
10691064 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 };
10711066 bool res = MemPoolAccept (pool).AcceptSingleTransaction (tx, args);
10721067 if (!res) {
10731068 // Remove coins that were not present in the coins cache before calling ATMPW;
@@ -1086,10 +1081,10 @@ static bool AcceptToMemoryPoolWithTime(const CChainParams& chainparams, CTxMemPo
10861081
10871082bool AcceptToMemoryPool (CTxMemPool& pool, TxValidationState &state, const CTransactionRef &tx,
10881083 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)
10901085{
10911086 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);
10931088}
10941089
10951090CTransactionRef 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)
50785073 if (nTime + nExpiryTimeout > nNow) {
50795074 LOCK (cs_main);
50805075 AcceptToMemoryPoolWithTime (chainparams, pool, state, tx, nTime,
5081- nullptr /* plTxnReplaced */ , false /* bypass_limits */ , 0 /* nAbsurdFee */ ,
5076+ nullptr /* plTxnReplaced */ , false /* bypass_limits */ ,
50825077 false /* test_accept */ );
50835078 if (state.IsValid ()) {
50845079 ++count;
0 commit comments