use testing setup mempool in ComplexMemPool bench
This commit is contained in:
1 parent
aecc332a71
commit
d2f8f1b307
1 file changed
+1
-1
@@ -88,7 +88,7 @@ static void ComplexMemPool(benchmark::Bench& bench)
|
|||||||
}
|
}
|
||||||
std::vector<CTransactionRef> ordered_coins = CreateOrderedCoins(det_rand, childTxs, /*min_ancestors=*/1);
|
std::vector<CTransactionRef> ordered_coins = CreateOrderedCoins(det_rand, childTxs, /*min_ancestors=*/1);
|
||||||
const auto testing_setup = MakeNoLogFileContext<const TestingSetup>(CBaseChainParams::MAIN);
|
const auto testing_setup = MakeNoLogFileContext<const TestingSetup>(CBaseChainParams::MAIN);
|
||||||
CTxMemPool pool;
|
CTxMemPool& pool = *testing_setup.get()->m_node.mempool;
|
||||||
LOCK2(cs_main, pool.cs);
|
LOCK2(cs_main, pool.cs);
|
||||||
bench.run([&]() NO_THREAD_SAFETY_ANALYSIS {
|
bench.run([&]() NO_THREAD_SAFETY_ANALYSIS {
|
||||||
for (auto& tx : ordered_coins) {
|
for (auto& tx : ordered_coins) {
|
||||||
|
|||||||
Reference in new issue
Block a user