mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
use testing setup mempool in ComplexMemPool bench
This commit is contained in:
parent
aecc332a71
commit
d2f8f1b307
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue