@@ -58,12 +58,12 @@ BOOST_AUTO_TEST_CASE(MempoolRemoveTest)
5858 std::list<CTransaction> removed;
5959
6060 // Nothing in pool, remove should do nothing:
61- testPool.removeRecursive (txParent, removed);
61+ testPool.removeRecursive (txParent, & removed);
6262 BOOST_CHECK_EQUAL (removed.size (), 0 );
6363
6464 // Just the parent:
6565 testPool.addUnchecked (txParent.GetHash (), entry.FromTx (txParent));
66- testPool.removeRecursive (txParent, removed);
66+ testPool.removeRecursive (txParent, & removed);
6767 BOOST_CHECK_EQUAL (removed.size (), 1 );
6868 removed.clear ();
6969
@@ -75,16 +75,16 @@ BOOST_AUTO_TEST_CASE(MempoolRemoveTest)
7575 testPool.addUnchecked (txGrandChild[i].GetHash (), entry.FromTx (txGrandChild[i]));
7676 }
7777 // Remove Child[0], GrandChild[0] should be removed:
78- testPool.removeRecursive (txChild[0 ], removed);
78+ testPool.removeRecursive (txChild[0 ], & removed);
7979 BOOST_CHECK_EQUAL (removed.size (), 2 );
8080 removed.clear ();
8181 // ... make sure grandchild and child are gone:
82- testPool.removeRecursive (txGrandChild[0 ], removed);
82+ testPool.removeRecursive (txGrandChild[0 ], & removed);
8383 BOOST_CHECK_EQUAL (removed.size (), 0 );
84- testPool.removeRecursive (txChild[0 ], removed);
84+ testPool.removeRecursive (txChild[0 ], & removed);
8585 BOOST_CHECK_EQUAL (removed.size (), 0 );
8686 // Remove parent, all children/grandchildren should go:
87- testPool.removeRecursive (txParent, removed);
87+ testPool.removeRecursive (txParent, & removed);
8888 BOOST_CHECK_EQUAL (removed.size (), 5 );
8989 BOOST_CHECK_EQUAL (testPool.size (), 0 );
9090 removed.clear ();
@@ -97,7 +97,7 @@ BOOST_AUTO_TEST_CASE(MempoolRemoveTest)
9797 }
9898 // Now remove the parent, as might happen if a block-re-org occurs but the parent cannot be
9999 // put into the mempool (maybe because it is non-standard):
100- testPool.removeRecursive (txParent, removed);
100+ testPool.removeRecursive (txParent, & removed);
101101 BOOST_CHECK_EQUAL (removed.size (), 6 );
102102 BOOST_CHECK_EQUAL (testPool.size (), 0 );
103103 removed.clear ();
@@ -281,12 +281,11 @@ BOOST_AUTO_TEST_CASE(MempoolIndexingTest)
281281 BOOST_CHECK_EQUAL (pool.size (), 10 );
282282
283283 // Now try removing tx10 and verify the sort order returns to normal
284- std::list<CTransaction> removed;
285- pool.removeRecursive (pool.mapTx .find (tx10.GetHash ())->GetTx (), removed);
284+ pool.removeRecursive (pool.mapTx .find (tx10.GetHash ())->GetTx ());
286285 CheckSort<descendant_score>(pool, snapshotOrder);
287286
288- pool.removeRecursive (pool.mapTx .find (tx9.GetHash ())->GetTx (), removed );
289- pool.removeRecursive (pool.mapTx .find (tx8.GetHash ())->GetTx (), removed );
287+ pool.removeRecursive (pool.mapTx .find (tx9.GetHash ())->GetTx ());
288+ pool.removeRecursive (pool.mapTx .find (tx8.GetHash ())->GetTx ());
290289 /* Now check the sort on the mining score index.
291290 * Final order should be:
292291 *
@@ -413,8 +412,7 @@ BOOST_AUTO_TEST_CASE(MempoolAncestorIndexingTest)
413412 /* after tx6 is mined, tx7 should move up in the sort */
414413 std::vector<CTransaction> vtx;
415414 vtx.push_back (tx6);
416- std::list<CTransaction> dummy;
417- pool.removeForBlock (vtx, 1 , dummy, false );
415+ pool.removeForBlock (vtx, 1 , NULL , false );
418416
419417 sortedOrder.erase (sortedOrder.begin ()+1 );
420418 sortedOrder.pop_back ();
@@ -549,12 +547,11 @@ BOOST_AUTO_TEST_CASE(MempoolSizeLimitTest)
549547 pool.addUnchecked (tx7.GetHash (), entry.Fee (9000LL ).FromTx (tx7, &pool));
550548
551549 std::vector<CTransaction> vtx;
552- std::list<CTransaction> conflicts;
553550 SetMockTime (42 );
554551 SetMockTime (42 + CTxMemPool::ROLLING_FEE_HALFLIFE);
555552 BOOST_CHECK_EQUAL (pool.GetMinFee (1 ).GetFeePerK (), maxFeeRateRemoved.GetFeePerK () + 1000 );
556553 // ... we should keep the same min fee until we get a block
557- pool.removeForBlock (vtx, 1 , conflicts );
554+ pool.removeForBlock (vtx, 1 );
558555 SetMockTime (42 + 2 *CTxMemPool::ROLLING_FEE_HALFLIFE);
559556 BOOST_CHECK_EQUAL (pool.GetMinFee (1 ).GetFeePerK (), (maxFeeRateRemoved.GetFeePerK () + 1000 )/2 );
560557 // ... then feerate should drop 1/2 each halflife
0 commit comments