mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-04 04:45:10 +02:00
Return shared_ptr<CTransaction> from mempool removes
This commit is contained in:
@@ -80,7 +80,7 @@ BOOST_AUTO_TEST_CASE(SimpleRoundTripTest)
|
||||
|
||||
BOOST_CHECK_EQUAL(pool.mapTx.find(block.vtx[2].GetHash())->GetSharedTx().use_count(), SHARED_TX_OFFSET + 1);
|
||||
|
||||
std::list<CTransaction> removed;
|
||||
std::vector<std::shared_ptr<const CTransaction>> removed;
|
||||
pool.removeRecursive(block.vtx[2], &removed);
|
||||
BOOST_CHECK_EQUAL(removed.size(), 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user