mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 23:42:33 +02:00
use testing setup mempool in ComplexMemPool bench
This commit is contained in:
parent
aecc332a71
commit
d2f8f1b307
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user