From d2f8f1b307b056d1a54fb02a99da2cb664570904 Mon Sep 17 00:00:00 2001 From: glozow Date: Tue, 19 Apr 2022 16:37:43 -0700 Subject: [PATCH] use testing setup mempool in ComplexMemPool bench --- src/bench/mempool_stress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bench/mempool_stress.cpp b/src/bench/mempool_stress.cpp index f55f99445f4..725a6f8f5b3 100644 --- a/src/bench/mempool_stress.cpp +++ b/src/bench/mempool_stress.cpp @@ -88,7 +88,7 @@ static void ComplexMemPool(benchmark::Bench& bench) } std::vector ordered_coins = CreateOrderedCoins(det_rand, childTxs, /*min_ancestors=*/1); const auto testing_setup = MakeNoLogFileContext(CBaseChainParams::MAIN); - CTxMemPool pool; + CTxMemPool& pool = *testing_setup.get()->m_node.mempool; LOCK2(cs_main, pool.cs); bench.run([&]() NO_THREAD_SAFETY_ANALYSIS { for (auto& tx : ordered_coins) {