diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-04-09 11:47:32 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-04-17 10:19:32 -0400 |
commit | fab117096446ab63d1f38c1ef6edbc94a5d4ab52 (patch) | |
tree | 4a3e6d3eabb3c6990751f5a9b9f0100a6e27d1ee /src/bench/mempool_eviction.cpp | |
parent | 54f812d9d29893c690ae06b84aaeab128186aa36 (diff) | |
download | bitcoin-fab117096446ab63d1f38c1ef6edbc94a5d4ab52.tar.xz |
bench: Remove requirement that all benches use RegTestingSetup
Diffstat (limited to 'src/bench/mempool_eviction.cpp')
-rw-r--r-- | src/bench/mempool_eviction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bench/mempool_eviction.cpp b/src/bench/mempool_eviction.cpp index 1c9c106666..7df024def6 100644 --- a/src/bench/mempool_eviction.cpp +++ b/src/bench/mempool_eviction.cpp @@ -4,6 +4,7 @@ #include <bench/bench.h> #include <policy/policy.h> +#include <test/util/setup_common.h> #include <txmempool.h> @@ -24,6 +25,8 @@ static void AddTx(const CTransactionRef& tx, const CAmount& nFee, CTxMemPool& po // unique transactions for a more meaningful performance measurement. static void MempoolEviction(benchmark::State& state) { + RegTestingSetup test_setup; + CMutableTransaction tx1 = CMutableTransaction(); tx1.vin.resize(1); tx1.vin[0].scriptSig = CScript() << OP_1; |