@@ -450,7 +450,7 @@ class MemPoolAccept
450450 /* * Whether we allow transactions to replace mempool transactions by BIP125 rules. If false,
451451 * any transaction spending the same inputs as a transaction in the mempool is considered
452452 * a conflict. */
453- const bool m_allow_bip125_replacement ;
453+ const bool m_allow_replacement ;
454454 /* * When true, the mempool will not be trimmed when individual transactions are submitted in
455455 * Finalize(). Instead, limits should be enforced at the end to ensure the package is not
456456 * partially submitted.
@@ -470,7 +470,7 @@ class MemPoolAccept
470470 /* m_bypass_limits */ bypass_limits,
471471 /* m_coins_to_uncache */ coins_to_uncache,
472472 /* m_test_accept */ test_accept,
473- /* m_allow_bip125_replacement */ true ,
473+ /* m_allow_replacement */ true ,
474474 /* m_package_submission */ false ,
475475 /* m_package_feerates */ false ,
476476 };
@@ -484,7 +484,7 @@ class MemPoolAccept
484484 /* m_bypass_limits */ false ,
485485 /* m_coins_to_uncache */ coins_to_uncache,
486486 /* m_test_accept */ true ,
487- /* m_allow_bip125_replacement */ false ,
487+ /* m_allow_replacement */ false ,
488488 /* m_package_submission */ false , // not submitting to mempool
489489 /* m_package_feerates */ false ,
490490 };
@@ -498,7 +498,7 @@ class MemPoolAccept
498498 /* m_bypass_limits */ false ,
499499 /* m_coins_to_uncache */ coins_to_uncache,
500500 /* m_test_accept */ false ,
501- /* m_allow_bip125_replacement */ false ,
501+ /* m_allow_replacement */ false ,
502502 /* m_package_submission */ true ,
503503 /* m_package_feerates */ true ,
504504 };
@@ -511,7 +511,7 @@ class MemPoolAccept
511511 /* m_bypass_limits */ false ,
512512 /* m_coins_to_uncache */ package_args.m_coins_to_uncache ,
513513 /* m_test_accept */ package_args.m_test_accept ,
514- /* m_allow_bip125_replacement */ true ,
514+ /* m_allow_replacement */ true ,
515515 /* m_package_submission */ false ,
516516 /* m_package_feerates */ false , // only 1 transaction
517517 };
@@ -525,15 +525,15 @@ class MemPoolAccept
525525 bool bypass_limits,
526526 std::vector<COutPoint>& coins_to_uncache,
527527 bool test_accept,
528- bool allow_bip125_replacement ,
528+ bool allow_replacement ,
529529 bool package_submission,
530530 bool package_feerates)
531531 : m_chainparams{chainparams},
532532 m_accept_time{accept_time},
533533 m_bypass_limits{bypass_limits},
534534 m_coins_to_uncache{coins_to_uncache},
535535 m_test_accept{test_accept},
536- m_allow_bip125_replacement{allow_bip125_replacement },
536+ m_allow_replacement{allow_replacement },
537537 m_package_submission{package_submission},
538538 m_package_feerates{package_feerates}
539539 {
@@ -732,7 +732,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
732732 {
733733 const CTransaction* ptxConflicting = m_pool.GetConflictTx (txin.prevout );
734734 if (ptxConflicting) {
735- if (!args.m_allow_bip125_replacement ) {
735+ if (!args.m_allow_replacement ) {
736736 // Transaction conflicts with a mempool tx, but we're not allowing replacements.
737737 return state.Invalid (TxValidationResult::TX_MEMPOOL_POLICY, " bip125-replacement-disallowed" );
738738 }
@@ -1225,7 +1225,7 @@ PackageMempoolAcceptResult MemPoolAccept::AcceptMultipleTransactions(const std::
12251225 // package to spend. Since we already checked conflicts in the package and we don't allow
12261226 // replacements, we don't need to track the coins spent. Note that this logic will need to be
12271227 // updated if package replace-by-fee is allowed in the future.
1228- assert (!args.m_allow_bip125_replacement );
1228+ assert (!args.m_allow_replacement );
12291229 m_viewmempool.PackageAddTransaction (ws.m_ptx );
12301230 }
12311231
0 commit comments