aboutsummaryrefslogtreecommitdiff
path: root/src/bench/mempool_stress.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-04-09 11:47:32 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-04-17 10:19:32 -0400
commitfab117096446ab63d1f38c1ef6edbc94a5d4ab52 (patch)
tree4a3e6d3eabb3c6990751f5a9b9f0100a6e27d1ee /src/bench/mempool_stress.cpp
parent54f812d9d29893c690ae06b84aaeab128186aa36 (diff)
downloadbitcoin-fab117096446ab63d1f38c1ef6edbc94a5d4ab52.tar.xz
bench: Remove requirement that all benches use RegTestingSetup
Diffstat (limited to 'src/bench/mempool_stress.cpp')
-rw-r--r--src/bench/mempool_stress.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bench/mempool_stress.cpp b/src/bench/mempool_stress.cpp
index 389e2c096f..38d8632318 100644
--- a/src/bench/mempool_stress.cpp
+++ b/src/bench/mempool_stress.cpp
@@ -4,6 +4,7 @@
#include <bench/bench.h>
#include <policy/policy.h>
+#include <test/util/setup_common.h>
#include <txmempool.h>
#include <vector>
@@ -73,6 +74,7 @@ static void ComplexMemPool(benchmark::State& state)
ordered_coins.emplace_back(MakeTransactionRef(tx));
available_coins.emplace_back(ordered_coins.back(), tx_counter++);
}
+ TestingSetup test_setup;
CTxMemPool pool;
LOCK2(cs_main, pool.cs);
while (state.KeepRunning()) {