Skip to content

Commit faf0a26

Browse files
author
MarcoFalke
committed
doc: Update comments for new chain settings (-signet and -chain=signet)
1 parent fae0548 commit faf0a26

File tree

5 files changed

+5
-20
lines changed

5 files changed

+5
-20
lines changed

src/bitcoin-cli.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ static void libevent_log_cb(int severity, const char *msg)
8787
}
8888
}
8989

90-
//////////////////////////////////////////////////////////////////////////////
91-
//
92-
// Start
93-
//
94-
9590
//
9691
// Exception thrown on connection error. This error is used to determine
9792
// when to wait if -rpcwait is given.
@@ -112,9 +107,6 @@ class CConnectionFailed : public std::runtime_error
112107
//
113108
static int AppInitRPC(int argc, char* argv[])
114109
{
115-
//
116-
// Parameters
117-
//
118110
SetupCliArgs(gArgs);
119111
std::string error;
120112
if (!gArgs.ParseParameters(argc, argv, error)) {
@@ -147,7 +139,7 @@ static int AppInitRPC(int argc, char* argv[])
147139
tfm::format(std::cerr, "Error reading configuration file: %s\n", error);
148140
return EXIT_FAILURE;
149141
}
150-
// Check for -chain, -testnet or -regtest parameter (BaseParams() calls are only valid after this clause)
142+
// Check for chain settings (BaseParams() calls are only valid after this clause)
151143
try {
152144
SelectBaseParams(gArgs.GetChainName());
153145
} catch (const std::exception& e) {

src/bitcoin-tx.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,14 @@ static void SetupBitcoinTxArgs(ArgsManager &argsman)
7878
//
7979
static int AppInitRawTx(int argc, char* argv[])
8080
{
81-
//
82-
// Parameters
83-
//
8481
SetupBitcoinTxArgs(gArgs);
8582
std::string error;
8683
if (!gArgs.ParseParameters(argc, argv, error)) {
8784
tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error);
8885
return EXIT_FAILURE;
8986
}
9087

91-
// Check for -chain, -testnet or -regtest parameter (Params() calls are only valid after this clause)
88+
// Check for chain settings (Params() calls are only valid after this clause)
9289
try {
9390
SelectParams(gArgs.GetChainName());
9491
} catch (const std::exception& e) {

src/bitcoin-wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static bool WalletAppInit(int argc, char* argv[])
6262
tfm::format(std::cerr, "Error: Specified data directory \"%s\" does not exist.\n", gArgs.GetArg("-datadir", ""));
6363
return false;
6464
}
65-
// Check for -testnet or -regtest parameter (Params() calls are only valid after this clause)
65+
// Check for chain settings (Params() calls are only valid after this clause)
6666
SelectParams(gArgs.GetChainName());
6767

6868
return true;

src/bitcoind.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ static void WaitForShutdown(NodeContext& node)
3737
Interrupt(node);
3838
}
3939

40-
//////////////////////////////////////////////////////////////////////////////
41-
//
42-
// Start
43-
//
4440
static bool AppInit(int argc, char* argv[])
4541
{
4642
NodeContext node;
@@ -81,7 +77,7 @@ static bool AppInit(int argc, char* argv[])
8177
if (!args.ReadConfigFiles(error, true)) {
8278
return InitError(Untranslated(strprintf("Error reading configuration file: %s\n", error)));
8379
}
84-
// Check for -chain, -testnet or -regtest parameter (Params() calls are only valid after this clause)
80+
// Check for chain settings (Params() calls are only valid after this clause)
8581
try {
8682
SelectParams(args.GetChainName());
8783
} catch (const std::exception& e) {

src/qt/bitcoin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ int GuiMain(int argc, char* argv[])
533533
// - QSettings() will use the new application name after this, resulting in network-specific settings
534534
// - Needs to be done before createOptionsModel
535535

536-
// Check for -chain, -testnet or -regtest parameter (Params() calls are only valid after this clause)
536+
// Check for chain settings (Params() calls are only valid after this clause)
537537
try {
538538
SelectParams(gArgs.GetChainName());
539539
} catch(std::exception &e) {

0 commit comments

Comments
 (0)