mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
lightningd: allow --regtest.
Developers, rejoice (we already have --testnet, --signet and --mainnet!). Changelog-Added: Config: `--regtest` option as alias for `--network=regtest` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -340,6 +340,9 @@ struct configvar **initial_config_opts(const tal_t *ctx,
|
||||
opt_register_early_noarg("--mainnet",
|
||||
opt_set_specific_network, "bitcoin",
|
||||
"Alias for --network=bitcoin");
|
||||
opt_register_early_noarg("--regtest",
|
||||
opt_set_specific_network, "regtest",
|
||||
"Alias for --network=regtest");
|
||||
/* Handle --version (and exit) here too */
|
||||
opt_register_version();
|
||||
|
||||
|
||||
@@ -81,6 +81,10 @@ This is not valid within the per-network configuration file.
|
||||
|
||||
Alias for *network=bitcoin*.
|
||||
|
||||
* **regtest**
|
||||
|
||||
Alias for *network=regtest* (added in v23.08)
|
||||
|
||||
* **testnet**
|
||||
|
||||
Alias for *network=testnet*.
|
||||
|
||||
Reference in New Issue
Block a user