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=