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