@@ -363,17 +363,17 @@ BOOST_FIXTURE_TEST_CASE(package_cpfp_tests, TestChain100Setup)
363363 const CAmount child_value{parent_value - COIN};
364364
365365 Package package_cpfp;
366- auto mtx_parent = CreateValidMempoolTransaction (/* input_transaction=*/ m_coinbase_txns[0 ], /* vout =*/ 0 ,
367- /* input_height=*/ 0 , /* input_signing_key=*/ coinbaseKey,
368- /* output_destination=*/ parent_spk,
369- /* output_amount=*/ parent_value, /* submit=*/ false );
366+ auto mtx_parent = CreateValidMempoolTransaction (/* input_transaction=*/ m_coinbase_txns[0 ], /* input_vout =*/ 0 ,
367+ /* input_height=*/ 0 , /* input_signing_key=*/ coinbaseKey,
368+ /* output_destination=*/ parent_spk,
369+ /* output_amount=*/ parent_value, /* submit=*/ false );
370370 CTransactionRef tx_parent = MakeTransactionRef (mtx_parent);
371371 package_cpfp.push_back (tx_parent);
372372
373- auto mtx_child = CreateValidMempoolTransaction (/* input_transaction=*/ tx_parent, /* vout =*/ 0 ,
374- /* input_height=*/ 101 , /* input_signing_key=*/ child_key,
375- /* output_destination=*/ child_spk,
376- /* output_amount=*/ child_value, /* submit=*/ false );
373+ auto mtx_child = CreateValidMempoolTransaction (/* input_transaction=*/ tx_parent, /* input_vout =*/ 0 ,
374+ /* input_height=*/ 101 , /* input_signing_key=*/ child_key,
375+ /* output_destination=*/ child_spk,
376+ /* output_amount=*/ child_value, /* submit=*/ false );
377377 CTransactionRef tx_child = MakeTransactionRef (mtx_child);
378378 package_cpfp.push_back (tx_child);
379379
@@ -435,25 +435,25 @@ BOOST_FIXTURE_TEST_CASE(package_cpfp_tests, TestChain100Setup)
435435 // This package just pays 200 satoshis total. This would be enough to pay for the child alone,
436436 // but isn't enough for the entire package to meet the 1sat/vbyte minimum.
437437 Package package_still_too_low;
438- auto mtx_parent_cheap = CreateValidMempoolTransaction (/* input_transaction=*/ m_coinbase_txns[1 ], /* vout =*/ 0 ,
439- /* input_height=*/ 0 , /* input_signing_key=*/ coinbaseKey,
440- /* output_destination=*/ parent_spk,
441- /* output_amount=*/ coinbase_value, /* submit=*/ false );
438+ auto mtx_parent_cheap = CreateValidMempoolTransaction (/* input_transaction=*/ m_coinbase_txns[1 ], /* input_vout =*/ 0 ,
439+ /* input_height=*/ 0 , /* input_signing_key=*/ coinbaseKey,
440+ /* output_destination=*/ parent_spk,
441+ /* output_amount=*/ coinbase_value, /* submit=*/ false );
442442 CTransactionRef tx_parent_cheap = MakeTransactionRef (mtx_parent_cheap);
443443 package_still_too_low.push_back (tx_parent_cheap);
444444
445- auto mtx_child_cheap = CreateValidMempoolTransaction (/* input_transaction=*/ tx_parent_cheap, /* vout =*/ 0 ,
446- /* input_height=*/ 101 , /* input_signing_key */ child_key,
447- /* output_destination=*/ child_spk,
448- /* output_amount=*/ coinbase_value - 200 , /* submit=*/ false );
445+ auto mtx_child_cheap = CreateValidMempoolTransaction (/* input_transaction=*/ tx_parent_cheap, /* input_vout =*/ 0 ,
446+ /* input_height=*/ 101 , /* input_signing_key= */ child_key,
447+ /* output_destination=*/ child_spk,
448+ /* output_amount=*/ coinbase_value - 200 , /* submit=*/ false );
449449 CTransactionRef tx_child_cheap = MakeTransactionRef (mtx_child_cheap);
450450 package_still_too_low.push_back (tx_child_cheap);
451451
452452 // Cheap package should fail with package-fee-too-low.
453453 {
454454 BOOST_CHECK_EQUAL (m_node.mempool ->size (), expected_pool_size);
455455 const auto submit_package_too_low = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
456- package_still_too_low, /* test_accept */ false );
456+ package_still_too_low, /* test_accept= */ false );
457457 BOOST_CHECK_MESSAGE (submit_package_too_low.m_state .IsInvalid (), " Package validation unexpectedly succeeded" );
458458 BOOST_CHECK_EQUAL (submit_package_too_low.m_state .GetResult (), PackageValidationResult::PCKG_POLICY);
459459 BOOST_CHECK_EQUAL (submit_package_too_low.m_state .GetRejectReason (), " package-fee-too-low" );
@@ -475,7 +475,7 @@ BOOST_FIXTURE_TEST_CASE(package_cpfp_tests, TestChain100Setup)
475475 // Now that the child's fees have "increased" by 1 BTC, the cheap package should succeed.
476476 {
477477 const auto submit_prioritised_package = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
478- package_still_too_low, /* test_accept=*/ false );
478+ package_still_too_low, /* test_accept=*/ false );
479479 expected_pool_size += 2 ;
480480 BOOST_CHECK_MESSAGE (submit_prioritised_package.m_state .IsValid (),
481481 " Package validation unexpectedly failed" << submit_prioritised_package.m_state .GetRejectReason ());
@@ -494,25 +494,25 @@ BOOST_FIXTURE_TEST_CASE(package_cpfp_tests, TestChain100Setup)
494494 // the parent from being accepted.
495495 Package package_rich_parent;
496496 const CAmount high_parent_fee{1 * COIN};
497- auto mtx_parent_rich = CreateValidMempoolTransaction (/* input_transaction=*/ m_coinbase_txns[2 ], /* vout =*/ 0 ,
498- /* input_height=*/ 0 , /* input_signing_key=*/ coinbaseKey,
499- /* output_destination=*/ parent_spk,
500- /* output_amount=*/ coinbase_value - high_parent_fee, /* submit=*/ false );
497+ auto mtx_parent_rich = CreateValidMempoolTransaction (/* input_transaction=*/ m_coinbase_txns[2 ], /* input_vout =*/ 0 ,
498+ /* input_height=*/ 0 , /* input_signing_key=*/ coinbaseKey,
499+ /* output_destination=*/ parent_spk,
500+ /* output_amount=*/ coinbase_value - high_parent_fee, /* submit=*/ false );
501501 CTransactionRef tx_parent_rich = MakeTransactionRef (mtx_parent_rich);
502502 package_rich_parent.push_back (tx_parent_rich);
503503
504- auto mtx_child_poor = CreateValidMempoolTransaction (/* input_transaction=*/ tx_parent_rich, /* vout =*/ 0 ,
505- /* input_height=*/ 101 , /* input_signing_key=*/ child_key,
506- /* output_destination=*/ child_spk,
507- /* output_amount=*/ coinbase_value - high_parent_fee, /* submit=*/ false );
504+ auto mtx_child_poor = CreateValidMempoolTransaction (/* input_transaction=*/ tx_parent_rich, /* input_vout =*/ 0 ,
505+ /* input_height=*/ 101 , /* input_signing_key=*/ child_key,
506+ /* output_destination=*/ child_spk,
507+ /* output_amount=*/ coinbase_value - high_parent_fee, /* submit=*/ false );
508508 CTransactionRef tx_child_poor = MakeTransactionRef (mtx_child_poor);
509509 package_rich_parent.push_back (tx_child_poor);
510510
511511 // Parent pays 1 BTC and child pays none. The parent should be accepted without the child.
512512 {
513513 BOOST_CHECK_EQUAL (m_node.mempool ->size (), expected_pool_size);
514514 const auto submit_rich_parent = ProcessNewPackage (m_node.chainman ->ActiveChainstate (), *m_node.mempool ,
515- package_rich_parent, /* test_accept */ false );
515+ package_rich_parent, /* test_accept= */ false );
516516 expected_pool_size += 1 ;
517517 BOOST_CHECK_MESSAGE (submit_rich_parent.m_state .IsInvalid (), " Package validation unexpectedly succeeded" );
518518
0 commit comments