bench: Use existing CTxMemPool in TestingSetup
This commit is contained in:
1 parent
86e732def3
commit
020caba3df
1 file changed
+1
-1
@@ -108,7 +108,7 @@ static void MempoolEviction(benchmark::Bench& bench)
|
|||||||
tx7.vout[1].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
|
tx7.vout[1].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
|
||||||
tx7.vout[1].nValue = 10 * COIN;
|
tx7.vout[1].nValue = 10 * COIN;
|
||||||
|
|
||||||
CTxMemPool pool;
|
CTxMemPool& pool = *Assert(testing_setup->m_node.mempool);
|
||||||
LOCK2(cs_main, pool.cs);
|
LOCK2(cs_main, pool.cs);
|
||||||
// Create transaction references outside the "hot loop"
|
// Create transaction references outside the "hot loop"
|
||||||
const CTransactionRef tx1_r{MakeTransactionRef(tx1)};
|
const CTransactionRef tx1_r{MakeTransactionRef(tx1)};
|
||||||
|
|||||||
Reference in new issue
Block a user