diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-09-24 15:11:27 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-09-29 10:20:05 +0200 |
commit | fa23308e9aad70c99a31f91d8556f1876ea02c04 (patch) | |
tree | b506f748bfb0d71bde4c34500abf0bc0455040b6 /src/bench/checkblock.cpp | |
parent | e36aa351a31cde0f95ce957b2ff593a97f91eb6d (diff) | |
download | bitcoin-fa23308e9aad70c99a31f91d8556f1876ea02c04.tar.xz |
Remove gArgs global from CreateChainParams to aid testing
Diffstat (limited to 'src/bench/checkblock.cpp')
-rw-r--r-- | src/bench/checkblock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bench/checkblock.cpp b/src/bench/checkblock.cpp index dc0aa4031c..a9f3f5f84d 100644 --- a/src/bench/checkblock.cpp +++ b/src/bench/checkblock.cpp @@ -34,7 +34,8 @@ static void DeserializeAndCheckBlockTest(benchmark::Bench& bench) char a = '\0'; stream.write(&a, 1); // Prevent compaction - const auto chainParams = CreateChainParams(CBaseChainParams::MAIN); + ArgsManager bench_args; + const auto chainParams = CreateChainParams(bench_args, CBaseChainParams::MAIN); bench.unit("block").run([&] { CBlock block; // Note that CBlock caches its checked state, so we need to recreate it here |