Skip to content

Commit d2f8f1b

Browse files
committed
use testing setup mempool in ComplexMemPool bench
1 parent aecc332 commit d2f8f1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bench/mempool_stress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static void ComplexMemPool(benchmark::Bench& bench)
8888
}
8989
std::vector<CTransactionRef> ordered_coins = CreateOrderedCoins(det_rand, childTxs, /*min_ancestors=*/1);
9090
const auto testing_setup = MakeNoLogFileContext<const TestingSetup>(CBaseChainParams::MAIN);
91-
CTxMemPool pool;
91+
CTxMemPool& pool = *testing_setup.get()->m_node.mempool;
9292
LOCK2(cs_main, pool.cs);
9393
bench.run([&]() NO_THREAD_SAFETY_ANALYSIS {
9494
for (auto& tx : ordered_coins) {

0 commit comments

Comments
 (0)