@@ -504,10 +504,10 @@ class MemPoolAccept
504
504
505
505
/* * Parameters for test package mempool validation through testmempoolaccept. */
506
506
static ATMPArgs PackageTestAccept (const CChainParams& chainparams, int64_t accept_time,
507
- std::vector<COutPoint>& coins_to_uncache) {
507
+ const ignore_rejects_type& ignore_rejects, std::vector<COutPoint>& coins_to_uncache) {
508
508
return ATMPArgs{/* m_chainparams */ chainparams,
509
509
/* m_accept_time */ accept_time,
510
- empty_ignore_rejects ,
510
+ /* m_ignore_rejects */ ignore_rejects ,
511
511
/* m_coins_to_uncache */ coins_to_uncache,
512
512
/* m_test_accept */ true ,
513
513
/* m_allow_replacement */ false ,
@@ -521,10 +521,10 @@ class MemPoolAccept
521
521
522
522
/* * Parameters for child-with-unconfirmed-parents package validation. */
523
523
static ATMPArgs PackageChildWithParents (const CChainParams& chainparams, int64_t accept_time,
524
- std::vector<COutPoint>& coins_to_uncache, const std::optional<CFeeRate>& client_maxfeerate) {
524
+ std::vector<COutPoint>& coins_to_uncache, const std::optional<CFeeRate>& client_maxfeerate, const ignore_rejects_type& ignore_rejects ) {
525
525
return ATMPArgs{/* m_chainparams */ chainparams,
526
526
/* m_accept_time */ accept_time,
527
- empty_ignore_rejects ,
527
+ /* m_ignore_rejects */ ignore_rejects ,
528
528
/* m_coins_to_uncache */ coins_to_uncache,
529
529
/* m_test_accept */ false ,
530
530
/* m_allow_replacement */ true ,
@@ -1920,7 +1920,7 @@ MempoolAcceptResult AcceptToMemoryPool(Chainstate& active_chainstate, const CTra
1920
1920
}
1921
1921
1922
1922
PackageMempoolAcceptResult ProcessNewPackage (Chainstate& active_chainstate, CTxMemPool& pool,
1923
- const Package& package, bool test_accept, const std::optional<CFeeRate>& client_maxfeerate)
1923
+ const Package& package, bool test_accept, const std::optional<CFeeRate>& client_maxfeerate, const ignore_rejects_type& ignore_rejects )
1924
1924
{
1925
1925
AssertLockHeld (cs_main);
1926
1926
assert (!package.empty ());
@@ -1931,10 +1931,10 @@ PackageMempoolAcceptResult ProcessNewPackage(Chainstate& active_chainstate, CTxM
1931
1931
auto result = [&]() EXCLUSIVE_LOCKS_REQUIRED (cs_main) {
1932
1932
AssertLockHeld (cs_main);
1933
1933
if (test_accept) {
1934
- auto args = MemPoolAccept::ATMPArgs::PackageTestAccept (chainparams, GetTime (), coins_to_uncache);
1934
+ auto args = MemPoolAccept::ATMPArgs::PackageTestAccept (chainparams, GetTime (), ignore_rejects, coins_to_uncache);
1935
1935
return MemPoolAccept (pool, active_chainstate).AcceptMultipleTransactions (package, args);
1936
1936
} else {
1937
- auto args = MemPoolAccept::ATMPArgs::PackageChildWithParents (chainparams, GetTime (), coins_to_uncache, client_maxfeerate);
1937
+ auto args = MemPoolAccept::ATMPArgs::PackageChildWithParents (chainparams, GetTime (), coins_to_uncache, client_maxfeerate, ignore_rejects );
1938
1938
return MemPoolAccept (pool, active_chainstate).AcceptPackage (package, args);
1939
1939
}
1940
1940
}();
0 commit comments