mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
doc: Update comments for new chain settings (-signet and -chain=signet)
This commit is contained in:
parent
fae0548686
commit
faf0a26711
5 changed files with 5 additions and 20 deletions
|
@ -87,11 +87,6 @@ static void libevent_log_cb(int severity, const char *msg)
|
|||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Start
|
||||
//
|
||||
|
||||
//
|
||||
// Exception thrown on connection error. This error is used to determine
|
||||
// when to wait if -rpcwait is given.
|
||||
|
@ -112,9 +107,6 @@ public:
|
|||
//
|
||||
static int AppInitRPC(int argc, char* argv[])
|
||||
{
|
||||
//
|
||||
// Parameters
|
||||
//
|
||||
SetupCliArgs(gArgs);
|
||||
std::string error;
|
||||
if (!gArgs.ParseParameters(argc, argv, error)) {
|
||||
|
@ -147,7 +139,7 @@ static int AppInitRPC(int argc, char* argv[])
|
|||
tfm::format(std::cerr, "Error reading configuration file: %s\n", error);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
// Check for -chain, -testnet or -regtest parameter (BaseParams() calls are only valid after this clause)
|
||||
// Check for chain settings (BaseParams() calls are only valid after this clause)
|
||||
try {
|
||||
SelectBaseParams(gArgs.GetChainName());
|
||||
} catch (const std::exception& e) {
|
||||
|
|
|
@ -78,9 +78,6 @@ static void SetupBitcoinTxArgs(ArgsManager &argsman)
|
|||
//
|
||||
static int AppInitRawTx(int argc, char* argv[])
|
||||
{
|
||||
//
|
||||
// Parameters
|
||||
//
|
||||
SetupBitcoinTxArgs(gArgs);
|
||||
std::string error;
|
||||
if (!gArgs.ParseParameters(argc, argv, error)) {
|
||||
|
@ -88,7 +85,7 @@ static int AppInitRawTx(int argc, char* argv[])
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// Check for -chain, -testnet or -regtest parameter (Params() calls are only valid after this clause)
|
||||
// Check for chain settings (Params() calls are only valid after this clause)
|
||||
try {
|
||||
SelectParams(gArgs.GetChainName());
|
||||
} catch (const std::exception& e) {
|
||||
|
|
|
@ -62,7 +62,7 @@ static bool WalletAppInit(int argc, char* argv[])
|
|||
tfm::format(std::cerr, "Error: Specified data directory \"%s\" does not exist.\n", gArgs.GetArg("-datadir", ""));
|
||||
return false;
|
||||
}
|
||||
// Check for -testnet or -regtest parameter (Params() calls are only valid after this clause)
|
||||
// Check for chain settings (Params() calls are only valid after this clause)
|
||||
SelectParams(gArgs.GetChainName());
|
||||
|
||||
return true;
|
||||
|
|
|
@ -37,10 +37,6 @@ static void WaitForShutdown(NodeContext& node)
|
|||
Interrupt(node);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Start
|
||||
//
|
||||
static bool AppInit(int argc, char* argv[])
|
||||
{
|
||||
NodeContext node;
|
||||
|
@ -81,7 +77,7 @@ static bool AppInit(int argc, char* argv[])
|
|||
if (!args.ReadConfigFiles(error, true)) {
|
||||
return InitError(Untranslated(strprintf("Error reading configuration file: %s\n", error)));
|
||||
}
|
||||
// Check for -chain, -testnet or -regtest parameter (Params() calls are only valid after this clause)
|
||||
// Check for chain settings (Params() calls are only valid after this clause)
|
||||
try {
|
||||
SelectParams(args.GetChainName());
|
||||
} catch (const std::exception& e) {
|
||||
|
|
|
@ -533,7 +533,7 @@ int GuiMain(int argc, char* argv[])
|
|||
// - QSettings() will use the new application name after this, resulting in network-specific settings
|
||||
// - Needs to be done before createOptionsModel
|
||||
|
||||
// Check for -chain, -testnet or -regtest parameter (Params() calls are only valid after this clause)
|
||||
// Check for chain settings (Params() calls are only valid after this clause)
|
||||
try {
|
||||
SelectParams(gArgs.GetChainName());
|
||||
} catch(std::exception &e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue