aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2022-04-19 16:37:43 -0700
committerglozow <gloriajzhao@gmail.com>2022-05-30 16:00:41 -0700
commitd2f8f1b307b056d1a54fb02a99da2cb664570904 (patch)
treea3e5ca7d5394835013e537876cf1f938194614d0 /src/bench
parentaecc332a71037812b7334a0ea72d0bcf8160c12f (diff)
downloadbitcoin-d2f8f1b307b056d1a54fb02a99da2cb664570904.tar.xz
use testing setup mempool in ComplexMemPool bench
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/mempool_stress.cpp2
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) {