mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 10:42:23 +02:00
init: clarify -test error
See https://github.com/bitcoin/bitcoin/pull/29007#discussion_r1469388717
This commit is contained in:
@ -1031,7 +1031,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
|
||||
|
||||
if (args.IsArgSet("-test")) {
|
||||
if (chainparams.GetChainType() != ChainType::REGTEST) {
|
||||
return InitError(Untranslated("-test=<option> should only be used in functional tests"));
|
||||
return InitError(Untranslated("-test=<option> can only be used with regtest"));
|
||||
}
|
||||
const std::vector<std::string> options = args.GetArgs("-test");
|
||||
for (const std::string& option : options) {
|
||||
|
Reference in New Issue
Block a user