@@ -450,7 +450,7 @@ class MemPoolAccept
450
450
/* * Whether we allow transactions to replace mempool transactions by BIP125 rules. If false,
451
451
* any transaction spending the same inputs as a transaction in the mempool is considered
452
452
* a conflict. */
453
- const bool m_allow_bip125_replacement ;
453
+ const bool m_allow_replacement ;
454
454
/* * When true, the mempool will not be trimmed when individual transactions are submitted in
455
455
* Finalize(). Instead, limits should be enforced at the end to ensure the package is not
456
456
* partially submitted.
@@ -470,7 +470,7 @@ class MemPoolAccept
470
470
/* m_bypass_limits */ bypass_limits,
471
471
/* m_coins_to_uncache */ coins_to_uncache,
472
472
/* m_test_accept */ test_accept,
473
- /* m_allow_bip125_replacement */ true ,
473
+ /* m_allow_replacement */ true ,
474
474
/* m_package_submission */ false ,
475
475
/* m_package_feerates */ false ,
476
476
};
@@ -484,7 +484,7 @@ class MemPoolAccept
484
484
/* m_bypass_limits */ false ,
485
485
/* m_coins_to_uncache */ coins_to_uncache,
486
486
/* m_test_accept */ true ,
487
- /* m_allow_bip125_replacement */ false ,
487
+ /* m_allow_replacement */ false ,
488
488
/* m_package_submission */ false , // not submitting to mempool
489
489
/* m_package_feerates */ false ,
490
490
};
@@ -498,7 +498,7 @@ class MemPoolAccept
498
498
/* m_bypass_limits */ false ,
499
499
/* m_coins_to_uncache */ coins_to_uncache,
500
500
/* m_test_accept */ false ,
501
- /* m_allow_bip125_replacement */ false ,
501
+ /* m_allow_replacement */ false ,
502
502
/* m_package_submission */ true ,
503
503
/* m_package_feerates */ true ,
504
504
};
@@ -511,7 +511,7 @@ class MemPoolAccept
511
511
/* m_bypass_limits */ false ,
512
512
/* m_coins_to_uncache */ package_args.m_coins_to_uncache ,
513
513
/* m_test_accept */ package_args.m_test_accept ,
514
- /* m_allow_bip125_replacement */ true ,
514
+ /* m_allow_replacement */ true ,
515
515
/* m_package_submission */ false ,
516
516
/* m_package_feerates */ false , // only 1 transaction
517
517
};
@@ -525,15 +525,15 @@ class MemPoolAccept
525
525
bool bypass_limits,
526
526
std::vector<COutPoint>& coins_to_uncache,
527
527
bool test_accept,
528
- bool allow_bip125_replacement ,
528
+ bool allow_replacement ,
529
529
bool package_submission,
530
530
bool package_feerates)
531
531
: m_chainparams{chainparams},
532
532
m_accept_time{accept_time},
533
533
m_bypass_limits{bypass_limits},
534
534
m_coins_to_uncache{coins_to_uncache},
535
535
m_test_accept{test_accept},
536
- m_allow_bip125_replacement{allow_bip125_replacement },
536
+ m_allow_replacement{allow_replacement },
537
537
m_package_submission{package_submission},
538
538
m_package_feerates{package_feerates}
539
539
{
@@ -732,7 +732,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
732
732
{
733
733
const CTransaction* ptxConflicting = m_pool.GetConflictTx (txin.prevout );
734
734
if (ptxConflicting) {
735
- if (!args.m_allow_bip125_replacement ) {
735
+ if (!args.m_allow_replacement ) {
736
736
// Transaction conflicts with a mempool tx, but we're not allowing replacements.
737
737
return state.Invalid (TxValidationResult::TX_MEMPOOL_POLICY, " bip125-replacement-disallowed" );
738
738
}
@@ -1225,7 +1225,7 @@ PackageMempoolAcceptResult MemPoolAccept::AcceptMultipleTransactions(const std::
1225
1225
// package to spend. Since we already checked conflicts in the package and we don't allow
1226
1226
// replacements, we don't need to track the coins spent. Note that this logic will need to be
1227
1227
// updated if package replace-by-fee is allowed in the future.
1228
- assert (!args.m_allow_bip125_replacement );
1228
+ assert (!args.m_allow_replacement );
1229
1229
m_viewmempool.PackageAddTransaction (ws.m_ptx );
1230
1230
}
1231
1231
0 commit comments