bench: Use existing CTxMemPool in TestingSetup

This commit is contained in:
Carl Dong committed 2022-06-15 17:28:55 -04:00
1 parent 86e732def3
commit 020caba3df
1 file changed
+1 -1
+1 -1
View File
@@ -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)};