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/test/fuzz/util.h | |
parent | cfce346508f1f7513a0cfa2cea7d7f8336d01c6b (diff) |
Move MakeNoLogFileContext to common libtest_util, and use it in bench
Can be reviewed with --color-moved=dimmed-zebra
Diffstat (limited to 'src/test/fuzz/util.h')
-rw-r--r-- | src/test/fuzz/util.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/fuzz/util.h b/src/test/fuzz/util.h index f3bc3c78ab..5065cde06b 100644 --- a/src/test/fuzz/util.h +++ b/src/test/fuzz/util.h @@ -23,11 +23,9 @@ #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/util/net.h> -#include <test/util/setup_common.h> #include <txmempool.h> #include <uint256.h> #include <util/time.h> -#include <util/vector.h> #include <version.h> #include <algorithm> @@ -324,19 +322,6 @@ inline std::unique_ptr<CNode> ConsumeNodeAsUniquePtr(FuzzedDataProvider& fdp, co void FillNode(FuzzedDataProvider& fuzzed_data_provider, CNode& node, bool init_version) noexcept; -template <class T = const BasicTestingSetup> -std::unique_ptr<T> MakeNoLogFileContext(const std::string& chain_name = CBaseChainParams::REGTEST, const std::vector<const char*>& extra_args = {}) -{ - // Prepend default arguments for fuzzing - const std::vector<const char*> arguments = Cat( - { - "-nodebuglogfile", - }, - extra_args); - - return MakeUnique<T>(chain_name, arguments); -} - class FuzzedFileProvider { FuzzedDataProvider& m_fuzzed_data_provider; |