diff --git a/common/configdir.c b/common/configdir.c index f6127132d..7e56f0e95 100644 --- a/common/configdir.c +++ b/common/configdir.c @@ -438,15 +438,15 @@ void initial_config_opts(const tal_t *ctx, NULL, "Select the network parameters (bitcoin, testnet," " signet, regtest, litecoin or litecoin-testnet)"); + opt_register_early_noarg("--mainnet", + opt_restricted_toplevel_noarg, NULL, + "Alias for --network=bitcoin"); opt_register_early_noarg("--testnet", opt_restricted_toplevel_noarg, NULL, "Alias for --network=testnet"); opt_register_early_noarg("--signet", opt_restricted_toplevel_noarg, NULL, "Alias for --network=signet"); - opt_register_early_noarg("--mainnet", - opt_restricted_toplevel_noarg, NULL, - "Alias for --network=bitcoin"); /* They can set this later, it's just less effective. */ opt_register_early_arg("--allow-deprecated-apis", diff --git a/doc/lightningd-config.5 b/doc/lightningd-config.5 index e8dfdb4dd..61e0af300 100644 --- a/doc/lightningd-config.5 +++ b/doc/lightningd-config.5 @@ -68,6 +68,10 @@ Select the network parameters (\fIbitcoin\fR, \fItestnet\fR, \fIsignet\fR, or \f This is not valid within the per-network configuration file\. + \fBmainnet\fR +Alias for \fInetwork=bitcoin\fR\. + + \fBtestnet\fR Alias for \fInetwork=testnet\fR\. @@ -76,10 +80,6 @@ Alias for \fInetwork=testnet\fR\. Alias for \fInetwork=signet\fR\. - \fBmainnet\fR -Alias for \fInetwork=bitcoin\fR\. - - \fBbitcoin-cli\fR=\fIPATH\fR The name of \fIbitcoin-cli\fR executable to run\. @@ -581,4 +581,4 @@ Main web site: \fIhttps://github.com/ElementsProject/lightning\fR Note: the modules in the ccan/ directory have their own licenses, but the rest of the code is covered by the BSD-style MIT license\. -\" SHA256STAMP:9d72136e5abae6cb8f36899ebaeed6644ea566e95ec1a6f8b13cc911ed64a294 +\" SHA256STAMP:6b275a3227db6565ad3c5369b95d3eefe9472864b8ed9e6c5c768981cdf23b8f diff --git a/doc/lightningd-config.5.md b/doc/lightningd-config.5.md index 198ff6aa9..91aebbc97 100644 --- a/doc/lightningd-config.5.md +++ b/doc/lightningd-config.5.md @@ -63,15 +63,15 @@ Bitcoin control options: Select the network parameters (*bitcoin*, *testnet*, *signet*, or *regtest*). This is not valid within the per-network configuration file. + **mainnet** +Alias for *network=bitcoin*. + **testnet** Alias for *network=testnet*. **signet** Alias for *network=signet*. - **mainnet** -Alias for *network=bitcoin*. - **bitcoin-cli**=*PATH* The name of *bitcoin-cli* executable to run.