mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-23 15:20:49 +01:00
init: clarify -test error
See https://github.com/bitcoin/bitcoin/pull/29007#discussion_r1469388717
This commit is contained in:
parent
3047c3e3a9
commit
9a44a20fb7
1 changed files with 1 additions and 1 deletions
|
@ -1031,7 +1031,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
|
||||||
|
|
||||||
if (args.IsArgSet("-test")) {
|
if (args.IsArgSet("-test")) {
|
||||||
if (chainparams.GetChainType() != ChainType::REGTEST) {
|
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");
|
const std::vector<std::string> options = args.GetArgs("-test");
|
||||||
for (const std::string& option : options) {
|
for (const std::string& option : options) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue