aboutsummaryrefslogtreecommitdiff
path: root/src/bench/mempool_eviction.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-03-21 22:01:51 -0400
committerCarl Dong <contact@carldong.me>2022-06-15 17:28:55 -0400
commit020caba3df727ae8ede50eace86ae76971c0fea1 (patch)
treedab550470f43202834b03b51af3dc9bd121b79c6 /src/bench/mempool_eviction.cpp
parent86e732def3983f99ec84b59375615bedcdc0e664 (diff)
bench: Use existing CTxMemPool in TestingSetup
Diffstat (limited to 'src/bench/mempool_eviction.cpp')
-rw-r--r--src/bench/mempool_eviction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/mempool_eviction.cpp b/src/bench/mempool_eviction.cpp
index e80b9e1ac2..60d991fab9 100644
--- a/src/bench/mempool_eviction.cpp
+++ b/src/bench/mempool_eviction.cpp
@@ -108,7 +108,7 @@ static void MempoolEviction(benchmark::Bench& bench)
tx7.vout[1].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
tx7.vout[1].nValue = 10 * COIN;
- CTxMemPool pool;
+ CTxMemPool& pool = *Assert(testing_setup->m_node.mempool);
LOCK2(cs_main, pool.cs);
// Create transaction references outside the "hot loop"
const CTransactionRef tx1_r{MakeTransactionRef(tx1)};