Merge #8855: Use a proper factory for creating chainparams
c1082a7 Chainparams: Use the factory for pow tests (Jorge Timón)
2351a06 Chainparams: Get rid of CChainParams& Params(std::string) (Jorge Timón)
f87f362 Chainparams: Use a regular factory for creating chainparams (Jorge Timón)
Tree-SHA512: 359c8a2a1bc9d02db7856d02810240ada28048ac088f878b575597a7255cdb0ffdd1a647085ee67a34c6a7e7ed9e6cfdb61240cf6e75139619b640dbb096072c
strUsage+=HelpMessageOpt("-named",strprintf(_("Pass named instead of positional arguments (default: %s)"),DEFAULT_NAMED));
strUsage+=HelpMessageOpt("-rpcconnect=<ip>",strprintf(_("Send commands to node running on <ip> (default: %s)"),DEFAULT_RPCCONNECT));
strUsage+=HelpMessageOpt("-rpcport=<port>",strprintf(_("Connect to JSON-RPC on <port> (default: %u or testnet: %u)"),BaseParams(CBaseChainParams::MAIN).RPCPort(),BaseParams(CBaseChainParams::TESTNET).RPCPort()));
strUsage+=HelpMessageOpt("-rpcport=<port>",strprintf(_("Connect to JSON-RPC on <port> (default: %u or testnet: %u)"),defaultBaseParams->RPCPort(),testnetBaseParams->RPCPort()));
strUsage+=HelpMessageOpt("-rpcwait",_("Wait for RPC server to start"));
strUsage+=HelpMessageOpt("-rpcuser=<user>",_("Username for JSON-RPC connections"));
strUsage+=HelpMessageOpt("-rpcpassword=<pw>",_("Password for JSON-RPC connections"));
strUsage+=HelpMessageOpt("-blocknotify=<cmd>",_("Execute command when the best block changes (%s in cmd is replaced by block hash)"));
if(showDebug)
strUsage+=HelpMessageOpt("-blocksonly",strprintf(_("Whether to operate in a blocks only mode (default: %u)"),DEFAULT_BLOCKSONLY));
strUsage+=HelpMessageOpt("-assumevalid=<hex>",strprintf(_("If this block is in the chain assume that it and its ancestors are valid and potentially skip their script verification (0 to verify all, default: %s, testnet: %s)"),Params(CBaseChainParams::MAIN).GetConsensus().defaultAssumeValid.GetHex(),Params(CBaseChainParams::TESTNET).GetConsensus().defaultAssumeValid.GetHex()));
strUsage+=HelpMessageOpt("-assumevalid=<hex>",strprintf(_("If this block is in the chain assume that it and its ancestors are valid and potentially skip their script verification (0 to verify all, default: %s, testnet: %s)"),defaultChainParams->GetConsensus().defaultAssumeValid.GetHex(),testnetChainParams->GetConsensus().defaultAssumeValid.GetHex()));
strUsage+=HelpMessageOpt("-peerbloomfilters",strprintf(_("Support filtering of blocks and transaction with bloom filters (default: %u)"),DEFAULT_PEERBLOOMFILTERS));
strUsage+=HelpMessageOpt("-port=<port>",strprintf(_("Listen for connections on <port> (default: %u or testnet: %u)"),Params(CBaseChainParams::MAIN).GetDefaultPort(),Params(CBaseChainParams::TESTNET).GetDefaultPort()));
strUsage+=HelpMessageOpt("-port=<port>",strprintf(_("Listen for connections on <port> (default: %u or testnet: %u)"),defaultChainParams->GetDefaultPort(),testnetChainParams->GetDefaultPort()));
strUsage+=HelpMessageOpt("-proxy=<ip:port>",_("Connect through SOCKS5 proxy"));
strUsage+=HelpMessageOpt("-proxyrandomize",strprintf(_("Randomize credentials for every proxy connection. This enables Tor stream isolation (default: %u)"),DEFAULT_PROXYRANDOMIZE));
strUsage+=HelpMessageOpt("-seednode=<ip>",_("Connect to a node to retrieve peer addresses, and disconnect"));
strUsage+=HelpMessageOpt("-checkblocks=<n>",strprintf(_("How many blocks to check at startup (default: %u, 0 = all)"),DEFAULT_CHECKBLOCKS));
strUsage+=HelpMessageOpt("-checklevel=<n>",strprintf(_("How thorough the block verification of -checkblocks is (0-4, default: %u)"),DEFAULT_CHECKLEVEL));
strUsage+=HelpMessageOpt("-checkblockindex",strprintf("Do a full consistency check for mapBlockIndex, setBlockIndexCandidates, chainActive and mapBlocksUnlinked occasionally. Also sets -checkmempool (default: %u)",Params(CBaseChainParams::MAIN).DefaultConsistencyChecks()));
strUsage+=HelpMessageOpt("-checkmempool=<n>",strprintf("Run checks every <n> transactions (default: %u)",Params(CBaseChainParams::MAIN).DefaultConsistencyChecks()));
strUsage+=HelpMessageOpt("-checkblockindex",strprintf("Do a full consistency check for mapBlockIndex, setBlockIndexCandidates, chainActive and mapBlocksUnlinked occasionally. Also sets -checkmempool (default: %u)",defaultChainParams->DefaultConsistencyChecks()));
strUsage+=HelpMessageOpt("-checkmempool=<n>",strprintf("Run checks every <n> transactions (default: %u)",defaultChainParams->DefaultConsistencyChecks()));
strUsage+=HelpMessageOpt("-checkpoints",strprintf("Disable expensive verification for known chain history (default: %u)",DEFAULT_CHECKPOINTS_ENABLED));
strUsage+=HelpMessageOpt("-disablesafemode",strprintf("Disable safemode, override a real safe mode event (default: %u)",DEFAULT_DISABLE_SAFEMODE));
strUsage+=HelpMessageOpt("-acceptnonstdtxn",strprintf("Relay and mine \"non-standard\" transactions (%sdefault: %u)","testnet/regtest only; ",!Params(CBaseChainParams::TESTNET).RequireStandard()));
strUsage+=HelpMessageOpt("-acceptnonstdtxn",strprintf("Relay and mine \"non-standard\" transactions (%sdefault: %u)","testnet/regtest only; ",defaultChainParams->RequireStandard()));
strUsage+=HelpMessageOpt("-incrementalrelayfee=<amt>",strprintf("Fee rate (in %s/kB) used to define cost of relay, used for mempool limiting and BIP 125 replacement. (default: %s)",CURRENCY_UNIT,FormatMoney(DEFAULT_INCREMENTAL_RELAY_FEE)));
strUsage+=HelpMessageOpt("-dustrelayfee=<amt>",strprintf("Fee rate (in %s/kB) used to defined dust, the value of an output such that it will cost about 1/3 of its value in fees at this fee rate to spend it. (default: %s)",CURRENCY_UNIT,FormatMoney(DUST_RELAY_TX_FEE)));
strUsage+=HelpMessageOpt("-rpcuser=<user>",_("Username for JSON-RPC connections"));
strUsage+=HelpMessageOpt("-rpcpassword=<pw>",_("Password for JSON-RPC connections"));
strUsage+=HelpMessageOpt("-rpcauth=<userpw>",_("Username and hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcuser. The client then connects normally using the rpcuser=<USERNAME>/rpcpassword=<PASSWORD> pair of arguments. This option can be specified multiple times"));
strUsage+=HelpMessageOpt("-rpcport=<port>",strprintf(_("Listen for JSON-RPC connections on <port> (default: %u or testnet: %u)"),BaseParams(CBaseChainParams::MAIN).RPCPort(),BaseParams(CBaseChainParams::TESTNET).RPCPort()));
strUsage+=HelpMessageOpt("-rpcport=<port>",strprintf(_("Listen for JSON-RPC connections on <port> (default: %u or testnet: %u)"),defaultBaseParams->RPCPort(),testnetBaseParams->RPCPort()));
strUsage+=HelpMessageOpt("-rpcallowip=<ip>",_("Allow JSON-RPC connections from specified source. Valid for <ip> are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times"));
strUsage+=HelpMessageOpt("-rpcserialversion",strprintf(_("Sets the serialization of raw transaction or block hex returned in non-verbose mode, non-segwit(0) or segwit(1) (default: %d)"),DEFAULT_RPC_SERIALIZE_VERSION));
strUsage+=HelpMessageOpt("-rpcthreads=<n>",strprintf(_("Set the number of threads to service RPC calls (default: %d)"),DEFAULT_HTTP_THREADS));