@@ -57,12 +57,12 @@ BOOST_AUTO_TEST_CASE(MempoolRemoveTest)
5757 std::list<CTransaction> removed;
5858
5959 // Nothing in pool, remove should do nothing:
60- testPool.remove (txParent, removed, true );
60+ testPool.removeRecursive (txParent, removed);
6161 BOOST_CHECK_EQUAL (removed.size (), 0 );
6262
6363 // Just the parent:
6464 testPool.addUnchecked (txParent.GetHash (), entry.FromTx (txParent));
65- testPool.remove (txParent, removed, true );
65+ testPool.removeRecursive (txParent, removed);
6666 BOOST_CHECK_EQUAL (removed.size (), 1 );
6767 removed.clear ();
6868
@@ -74,16 +74,16 @@ BOOST_AUTO_TEST_CASE(MempoolRemoveTest)
7474 testPool.addUnchecked (txGrandChild[i].GetHash (), entry.FromTx (txGrandChild[i]));
7575 }
7676 // Remove Child[0], GrandChild[0] should be removed:
77- testPool.remove (txChild[0 ], removed, true );
77+ testPool.removeRecursive (txChild[0 ], removed);
7878 BOOST_CHECK_EQUAL (removed.size (), 2 );
7979 removed.clear ();
8080 // ... make sure grandchild and child are gone:
81- testPool.remove (txGrandChild[0 ], removed, true );
81+ testPool.removeRecursive (txGrandChild[0 ], removed);
8282 BOOST_CHECK_EQUAL (removed.size (), 0 );
83- testPool.remove (txChild[0 ], removed, true );
83+ testPool.removeRecursive (txChild[0 ], removed);
8484 BOOST_CHECK_EQUAL (removed.size (), 0 );
8585 // Remove parent, all children/grandchildren should go:
86- testPool.remove (txParent, removed, true );
86+ testPool.removeRecursive (txParent, removed);
8787 BOOST_CHECK_EQUAL (removed.size (), 5 );
8888 BOOST_CHECK_EQUAL (testPool.size (), 0 );
8989 removed.clear ();
@@ -96,7 +96,7 @@ BOOST_AUTO_TEST_CASE(MempoolRemoveTest)
9696 }
9797 // Now remove the parent, as might happen if a block-re-org occurs but the parent cannot be
9898 // put into the mempool (maybe because it is non-standard):
99- testPool.remove (txParent, removed, true );
99+ testPool.removeRecursive (txParent, removed);
100100 BOOST_CHECK_EQUAL (removed.size (), 6 );
101101 BOOST_CHECK_EQUAL (testPool.size (), 0 );
102102 removed.clear ();
@@ -281,11 +281,11 @@ BOOST_AUTO_TEST_CASE(MempoolIndexingTest)
281281
282282 // Now try removing tx10 and verify the sort order returns to normal
283283 std::list<CTransaction> removed;
284- pool.remove (pool.mapTx .find (tx10.GetHash ())->GetTx (), removed, true );
284+ pool.removeRecursive (pool.mapTx .find (tx10.GetHash ())->GetTx (), removed);
285285 CheckSort<descendant_score>(pool, snapshotOrder);
286286
287- pool.remove (pool.mapTx .find (tx9.GetHash ())->GetTx (), removed, true );
288- pool.remove (pool.mapTx .find (tx8.GetHash ())->GetTx (), removed, true );
287+ pool.removeRecursive (pool.mapTx .find (tx9.GetHash ())->GetTx (), removed);
288+ pool.removeRecursive (pool.mapTx .find (tx8.GetHash ())->GetTx (), removed);
289289 /* Now check the sort on the mining score index.
290290 * Final order should be:
291291 *
0 commit comments