diff options
author | glozow <gloriajzhao@gmail.com> | 2022-04-19 16:37:43 -0700 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2022-05-30 16:00:41 -0700 |
commit | d2f8f1b307b056d1a54fb02a99da2cb664570904 (patch) | |
tree | a3e5ca7d5394835013e537876cf1f938194614d0 /src/bench/mempool_stress.cpp | |
parent | aecc332a71037812b7334a0ea72d0bcf8160c12f (diff) |
use testing setup mempool in ComplexMemPool bench
Diffstat (limited to 'src/bench/mempool_stress.cpp')
-rw-r--r-- | src/bench/mempool_stress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/mempool_stress.cpp b/src/bench/mempool_stress.cpp index f55f99445f..725a6f8f5b 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<CTransactionRef> ordered_coins = CreateOrderedCoins(det_rand, childTxs, /*min_ancestors=*/1); const auto testing_setup = MakeNoLogFileContext<const TestingSetup>(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) { |