From b6ab3508064cd3135e1a356c884ae1269cda5250 Mon Sep 17 00:00:00 2001 From: Ryan Ofsky Date: Thu, 19 Dec 2019 18:00:04 -0500 Subject: [PATCH] Fix nonsensical -notest behavior Treat specifying -notest exactly the same as not specifying any -test value, instead of complaining that it must be used with -regtest. --- src/init.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 5d37a349c82..771efc64918 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1044,12 +1044,12 @@ bool AppInitParameterInteraction(const ArgsManager& args) if (args.GetBoolArg("-peerbloomfilters", DEFAULT_PEERBLOOMFILTERS)) g_local_services = ServiceFlags(g_local_services | NODE_BLOOM); - if (args.IsArgSet("-test")) { + const std::vector test_options = args.GetArgs("-test"); + if (!test_options.empty()) { if (chainparams.GetChainType() != ChainType::REGTEST) { return InitError(Untranslated("-test=