diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-01-25 12:22:03 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-03-03 09:17:37 +0100 |
commit | fa576b4532814b4bca1936d170cabd01fbc51960 (patch) | |
tree | 406f945a0fa46f6750f6a563e311c88932673f97 /src/bench/mempool_stress.cpp | |
parent | cfce346508f1f7513a0cfa2cea7d7f8336d01c6b (diff) | |
download | bitcoin-fa576b4532814b4bca1936d170cabd01fbc51960.tar.xz |
Move MakeNoLogFileContext to common libtest_util, and use it in bench
Can be reviewed with --color-moved=dimmed-zebra
Diffstat (limited to 'src/bench/mempool_stress.cpp')
-rw-r--r-- | src/bench/mempool_stress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/mempool_stress.cpp b/src/bench/mempool_stress.cpp index 9b862b735c..f28768efc8 100644 --- a/src/bench/mempool_stress.cpp +++ b/src/bench/mempool_stress.cpp @@ -79,7 +79,7 @@ static void ComplexMemPool(benchmark::Bench& bench) ordered_coins.emplace_back(MakeTransactionRef(tx)); available_coins.emplace_back(ordered_coins.back(), tx_counter++); } - TestingSetup test_setup; + const auto testing_setup = MakeNoLogFileContext<const TestingSetup>(CBaseChainParams::MAIN); CTxMemPool pool; LOCK2(cs_main, pool.cs); bench.run([&]() NO_THREAD_SAFETY_ANALYSIS { |