Skip to content

Commit 020caba

Browse files
committed
bench: Use existing CTxMemPool in TestingSetup
1 parent 86e732d commit 020caba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bench/mempool_eviction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static void MempoolEviction(benchmark::Bench& bench)
108108
tx7.vout[1].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
109109
tx7.vout[1].nValue = 10 * COIN;
110110

111-
CTxMemPool pool;
111+
CTxMemPool& pool = *Assert(testing_setup->m_node.mempool);
112112
LOCK2(cs_main, pool.cs);
113113
// Create transaction references outside the "hot loop"
114114
const CTransactionRef tx1_r{MakeTransactionRef(tx1)};

0 commit comments

Comments
 (0)