@@ -132,7 +132,7 @@ BOOST_FIXTURE_TEST_CASE(package_validation_tests, TestChain100Setup)
132
132
/* output_amount=*/ CAmount (48 * COIN), /* submit=*/ false );
133
133
CTransactionRef tx_child = MakeTransactionRef (mtx_child);
134
134
Package package_parent_child{tx_parent, tx_child};
135
- const auto result_parent_child = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool , package_parent_child, /* test_accept=*/ true , /* max_sane_feerate =*/ {});
135
+ const auto result_parent_child = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool , package_parent_child, /* test_accept=*/ true , /* client_maxfeerate =*/ {});
136
136
if (auto err_parent_child{CheckPackageMempoolAcceptResult (package_parent_child, result_parent_child, /* expect_valid=*/ true , nullptr )}) {
137
137
BOOST_ERROR (err_parent_child.value ());
138
138
} else {
@@ -151,7 +151,7 @@ BOOST_FIXTURE_TEST_CASE(package_validation_tests, TestChain100Setup)
151
151
CTransactionRef giant_ptx = create_placeholder_tx (999 , 999 );
152
152
BOOST_CHECK (GetVirtualTransactionSize (*giant_ptx) > DEFAULT_ANCESTOR_SIZE_LIMIT_KVB * 1000 );
153
153
Package package_single_giant{giant_ptx};
154
- auto result_single_large = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool , package_single_giant, /* test_accept=*/ true , /* max_sane_feerate =*/ {});
154
+ auto result_single_large = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool , package_single_giant, /* test_accept=*/ true , /* client_maxfeerate =*/ {});
155
155
if (auto err_single_large{CheckPackageMempoolAcceptResult (package_single_giant, result_single_large, /* expect_valid=*/ false , nullptr )}) {
156
156
BOOST_ERROR (err_single_large.value ());
157
157
} else {
@@ -275,7 +275,7 @@ BOOST_FIXTURE_TEST_CASE(package_submission_tests, TestChain100Setup)
275
275
package_unrelated.emplace_back (MakeTransactionRef (mtx));
276
276
}
277
277
auto result_unrelated_submit = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
278
- package_unrelated, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
278
+ package_unrelated, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
279
279
// We don't expect m_tx_results for each transaction when basic sanity checks haven't passed.
280
280
BOOST_CHECK (result_unrelated_submit.m_state .IsInvalid ());
281
281
BOOST_CHECK_EQUAL (result_unrelated_submit.m_state .GetResult (), PackageValidationResult::PCKG_POLICY);
@@ -315,7 +315,7 @@ BOOST_FIXTURE_TEST_CASE(package_submission_tests, TestChain100Setup)
315
315
// 3 Generations is not allowed.
316
316
{
317
317
auto result_3gen_submit = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
318
- package_3gen, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
318
+ package_3gen, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
319
319
BOOST_CHECK (result_3gen_submit.m_state .IsInvalid ());
320
320
BOOST_CHECK_EQUAL (result_3gen_submit.m_state .GetResult (), PackageValidationResult::PCKG_POLICY);
321
321
BOOST_CHECK_EQUAL (result_3gen_submit.m_state .GetRejectReason (), " package-not-child-with-parents" );
@@ -332,7 +332,7 @@ BOOST_FIXTURE_TEST_CASE(package_submission_tests, TestChain100Setup)
332
332
CTransactionRef tx_parent_invalid = MakeTransactionRef (mtx_parent_invalid);
333
333
Package package_invalid_parent{tx_parent_invalid, tx_child};
334
334
auto result_quit_early = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
335
- package_invalid_parent, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
335
+ package_invalid_parent, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
336
336
if (auto err_parent_invalid{CheckPackageMempoolAcceptResult (package_invalid_parent, result_quit_early, /* expect_valid=*/ false , m_node.mempool .get ())}) {
337
337
BOOST_ERROR (err_parent_invalid.value ());
338
338
} else {
@@ -353,7 +353,7 @@ BOOST_FIXTURE_TEST_CASE(package_submission_tests, TestChain100Setup)
353
353
package_missing_parent.push_back (MakeTransactionRef (mtx_child));
354
354
{
355
355
const auto result_missing_parent = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
356
- package_missing_parent, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
356
+ package_missing_parent, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
357
357
BOOST_CHECK (result_missing_parent.m_state .IsInvalid ());
358
358
BOOST_CHECK_EQUAL (result_missing_parent.m_state .GetResult (), PackageValidationResult::PCKG_POLICY);
359
359
BOOST_CHECK_EQUAL (result_missing_parent.m_state .GetRejectReason (), " package-not-child-with-unconfirmed-parents" );
@@ -363,7 +363,7 @@ BOOST_FIXTURE_TEST_CASE(package_submission_tests, TestChain100Setup)
363
363
// Submit package with parent + child.
364
364
{
365
365
const auto submit_parent_child = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
366
- package_parent_child, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
366
+ package_parent_child, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
367
367
expected_pool_size += 2 ;
368
368
BOOST_CHECK_MESSAGE (submit_parent_child.m_state .IsValid (),
369
369
" Package validation unexpectedly failed: " << submit_parent_child.m_state .GetRejectReason ());
@@ -385,7 +385,7 @@ BOOST_FIXTURE_TEST_CASE(package_submission_tests, TestChain100Setup)
385
385
// Already-in-mempool transactions should be detected and de-duplicated.
386
386
{
387
387
const auto submit_deduped = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
388
- package_parent_child, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
388
+ package_parent_child, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
389
389
if (auto err_deduped{CheckPackageMempoolAcceptResult (package_parent_child, submit_deduped, /* expect_valid=*/ true , m_node.mempool .get ())}) {
390
390
BOOST_ERROR (err_deduped.value ());
391
391
} else {
@@ -456,15 +456,15 @@ BOOST_FIXTURE_TEST_CASE(package_witness_swap_tests, TestChain100Setup)
456
456
{
457
457
Package package_parent_child1{ptx_parent, ptx_child1};
458
458
const auto submit_witness1 = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
459
- package_parent_child1, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
459
+ package_parent_child1, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
460
460
if (auto err_witness1{CheckPackageMempoolAcceptResult (package_parent_child1, submit_witness1, /* expect_valid=*/ true , m_node.mempool .get ())}) {
461
461
BOOST_ERROR (err_witness1.value ());
462
462
}
463
463
464
464
// Child2 would have been validated individually.
465
465
Package package_parent_child2{ptx_parent, ptx_child2};
466
466
const auto submit_witness2 = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
467
- package_parent_child2, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
467
+ package_parent_child2, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
468
468
if (auto err_witness2{CheckPackageMempoolAcceptResult (package_parent_child2, submit_witness2, /* expect_valid=*/ true , m_node.mempool .get ())}) {
469
469
BOOST_ERROR (err_witness2.value ());
470
470
} else {
@@ -478,7 +478,7 @@ BOOST_FIXTURE_TEST_CASE(package_witness_swap_tests, TestChain100Setup)
478
478
// Deduplication should work when wtxid != txid. Submit package with the already-in-mempool
479
479
// transactions again, which should not fail.
480
480
const auto submit_segwit_dedup = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
481
- package_parent_child1, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
481
+ package_parent_child1, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
482
482
if (auto err_segwit_dedup{CheckPackageMempoolAcceptResult (package_parent_child1, submit_segwit_dedup, /* expect_valid=*/ true , m_node.mempool .get ())}) {
483
483
BOOST_ERROR (err_segwit_dedup.value ());
484
484
} else {
@@ -508,7 +508,7 @@ BOOST_FIXTURE_TEST_CASE(package_witness_swap_tests, TestChain100Setup)
508
508
{
509
509
Package package_child2_grandchild{ptx_child2, ptx_grandchild};
510
510
const auto submit_spend_ignored = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
511
- package_child2_grandchild, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
511
+ package_child2_grandchild, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
512
512
if (auto err_spend_ignored{CheckPackageMempoolAcceptResult (package_child2_grandchild, submit_spend_ignored, /* expect_valid=*/ true , m_node.mempool .get ())}) {
513
513
BOOST_ERROR (err_spend_ignored.value ());
514
514
} else {
@@ -606,7 +606,7 @@ BOOST_FIXTURE_TEST_CASE(package_witness_swap_tests, TestChain100Setup)
606
606
// parent3 should be accepted
607
607
// child should be accepted
608
608
{
609
- const auto mixed_result = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool , package_mixed, false , /* max_sane_feerate =*/ {});
609
+ const auto mixed_result = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool , package_mixed, false , /* client_maxfeerate =*/ {});
610
610
if (auto err_mixed{CheckPackageMempoolAcceptResult (package_mixed, mixed_result, /* expect_valid=*/ true , m_node.mempool .get ())}) {
611
611
BOOST_ERROR (err_mixed.value ());
612
612
} else {
@@ -670,7 +670,7 @@ BOOST_FIXTURE_TEST_CASE(package_cpfp_tests, TestChain100Setup)
670
670
{
671
671
BOOST_CHECK_EQUAL (m_node.mempool ->size (), expected_pool_size);
672
672
const auto submit_cpfp_deprio = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
673
- package_cpfp, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
673
+ package_cpfp, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
674
674
if (auto err_cpfp_deprio{CheckPackageMempoolAcceptResult (package_cpfp, submit_cpfp_deprio, /* expect_valid=*/ false , m_node.mempool .get ())}) {
675
675
BOOST_ERROR (err_cpfp_deprio.value ());
676
676
} else {
@@ -692,7 +692,7 @@ BOOST_FIXTURE_TEST_CASE(package_cpfp_tests, TestChain100Setup)
692
692
{
693
693
BOOST_CHECK_EQUAL (m_node.mempool ->size (), expected_pool_size);
694
694
const auto submit_cpfp = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
695
- package_cpfp, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
695
+ package_cpfp, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
696
696
if (auto err_cpfp{CheckPackageMempoolAcceptResult (package_cpfp, submit_cpfp, /* expect_valid=*/ true , m_node.mempool .get ())}) {
697
697
BOOST_ERROR (err_cpfp.value ());
698
698
} else {
@@ -744,7 +744,7 @@ BOOST_FIXTURE_TEST_CASE(package_cpfp_tests, TestChain100Setup)
744
744
// Cheap package should fail for being too low fee.
745
745
{
746
746
const auto submit_package_too_low = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
747
- package_still_too_low, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
747
+ package_still_too_low, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
748
748
if (auto err_package_too_low{CheckPackageMempoolAcceptResult (package_still_too_low, submit_package_too_low, /* expect_valid=*/ false , m_node.mempool .get ())}) {
749
749
BOOST_ERROR (err_package_too_low.value ());
750
750
} else {
@@ -770,7 +770,7 @@ BOOST_FIXTURE_TEST_CASE(package_cpfp_tests, TestChain100Setup)
770
770
// Now that the child's fees have "increased" by 1 BTC, the cheap package should succeed.
771
771
{
772
772
const auto submit_prioritised_package = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
773
- package_still_too_low, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
773
+ package_still_too_low, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
774
774
if (auto err_prioritised{CheckPackageMempoolAcceptResult (package_still_too_low, submit_prioritised_package, /* expect_valid=*/ true , m_node.mempool .get ())}) {
775
775
BOOST_ERROR (err_prioritised.value ());
776
776
} else {
@@ -818,7 +818,7 @@ BOOST_FIXTURE_TEST_CASE(package_cpfp_tests, TestChain100Setup)
818
818
{
819
819
BOOST_CHECK_EQUAL (m_node.mempool ->size (), expected_pool_size);
820
820
const auto submit_rich_parent = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
821
- package_rich_parent, /* test_accept=*/ false , /* max_sane_feerate =*/ {});
821
+ package_rich_parent, /* test_accept=*/ false , /* client_maxfeerate =*/ {});
822
822
if (auto err_rich_parent{CheckPackageMempoolAcceptResult (package_rich_parent, submit_rich_parent, /* expect_valid=*/ false , m_node.mempool .get ())}) {
823
823
BOOST_ERROR (err_rich_parent.value ());
824
824
} else {
0 commit comments