@ -450,7 +450,7 @@ public:
/** Whether we allow transactions to replace mempool transactions by BIP125 rules. If false,
* any transaction spending the same inputs as a transaction in the mempool is considered
* a conflict . */
const bool m_allow_ bip125_ replacement;
const bool m_allow_ replacement;
/** When true, the mempool will not be trimmed when individual transactions are submitted in
* Finalize ( ) . Instead , limits should be enforced at the end to ensure the package is not
* partially submitted .
@ -470,7 +470,7 @@ public:
/* m_bypass_limits */ bypass_limits ,
/* m_coins_to_uncache */ coins_to_uncache ,
/* m_test_accept */ test_accept ,
/* m_allow_ bip125_ replacement */ true ,
/* m_allow_ replacement */ true ,
/* m_package_submission */ false ,
/* m_package_feerates */ false ,
} ;
@ -484,7 +484,7 @@ public:
/* m_bypass_limits */ false ,
/* m_coins_to_uncache */ coins_to_uncache ,
/* m_test_accept */ true ,
/* m_allow_ bip125_ replacement */ false ,
/* m_allow_ replacement */ false ,
/* m_package_submission */ false , // not submitting to mempool
/* m_package_feerates */ false ,
} ;
@ -498,7 +498,7 @@ public:
/* m_bypass_limits */ false ,
/* m_coins_to_uncache */ coins_to_uncache ,
/* m_test_accept */ false ,
/* m_allow_ bip125_ replacement */ false ,
/* m_allow_ replacement */ false ,
/* m_package_submission */ true ,
/* m_package_feerates */ true ,
} ;
@ -511,7 +511,7 @@ public:
/* m_bypass_limits */ false ,
/* m_coins_to_uncache */ package_args . m_coins_to_uncache ,
/* m_test_accept */ package_args . m_test_accept ,
/* m_allow_ bip125_ replacement */ true ,
/* m_allow_ replacement */ true ,
/* m_package_submission */ false ,
/* m_package_feerates */ false , // only 1 transaction
} ;
@ -525,7 +525,7 @@ public:
bool bypass_limits ,
std : : vector < COutPoint > & coins_to_uncache ,
bool test_accept ,
bool allow_ bip125_ replacement,
bool allow_ replacement,
bool package_submission ,
bool package_feerates )
: m_chainparams { chainparams } ,
@ -533,7 +533,7 @@ public:
m_bypass_limits { bypass_limits } ,
m_coins_to_uncache { coins_to_uncache } ,
m_test_accept { test_accept } ,
m_allow_ bip125_ replacement{ allow _bip125 _replacement} ,
m_allow_ replacement{ allow _replacement} ,
m_package_submission { package_submission } ,
m_package_feerates { package_feerates }
{
@ -732,7 +732,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
{
const CTransaction * ptxConflicting = m_pool . GetConflictTx ( txin . prevout ) ;
if ( ptxConflicting ) {
if ( ! args . m_allow_ bip125_ replacement) {
if ( ! args . m_allow_ replacement) {
// Transaction conflicts with a mempool tx, but we're not allowing replacements.
return state . Invalid ( TxValidationResult : : TX_MEMPOOL_POLICY , " bip125-replacement-disallowed " ) ;
}
@ -1225,7 +1225,7 @@ PackageMempoolAcceptResult MemPoolAccept::AcceptMultipleTransactions(const std::
// package to spend. Since we already checked conflicts in the package and we don't allow
// replacements, we don't need to track the coins spent. Note that this logic will need to be
// updated if package replace-by-fee is allowed in the future.
assert ( ! args . m_allow_ bip125_ replacement) ;
assert ( ! args . m_allow_ replacement) ;
m_viewmempool . PackageAddTransaction ( ws . m_ptx ) ;
}