diff --git a/config.go b/config.go index bd1789986..12cf21f29 100644 --- a/config.go +++ b/config.go @@ -177,9 +177,9 @@ type Config struct { // Network is the Bitcoin network we're running on. This will be parsed // before the configuration is loaded and will set the correct flag on - // `lnd.bitcoin.mainnet|testnet|regtest` and also for the other daemons. - // That way only one global network flag is needed. - Network string `long:"network" description:"The network the UI and all its components run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet"` + // `lnd.bitcoin.mainnet|testnet|regtest|signet` and also for the other + // daemons. That way only one global network flag is needed. + Network string `long:"network" description:"The network the UI and all its components run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet" choice:"signet"` Remote *subservers.RemoteConfig `group:"Remote mode options (use when lnd-mode=remote)" namespace:"remote"` @@ -757,6 +757,9 @@ func setNetwork(cfg *Config) error { case "simnet": cfg.Lnd.Bitcoin.SimNet = true + case "signet": + cfg.Lnd.Bitcoin.SigNet = true + default: return fmt.Errorf("unknown network: %v", cfg.Network) } diff --git a/docs/release-notes/release-notes-0.13.7.md b/docs/release-notes/release-notes-0.13.7.md index 881897bbb..0e30c51f4 100644 --- a/docs/release-notes/release-notes-0.13.7.md +++ b/docs/release-notes/release-notes-0.13.7.md @@ -30,6 +30,10 @@ sufficiently long duration (>= 30 seconds) should be used. The default value was bumped from 30 seconds to 3 minutes. +* Add support for connecting LiT to a [signet + network](https://github.com/lightninglabs/lightning-terminal/pull/902). This + can be done using the `--network=signet` config option. + ### Technical and Architectural Updates ## Integrated Binary Updates @@ -46,4 +50,5 @@ # Contributors (Alphabetical Order) -- Oliver Gugger \ No newline at end of file +* Elle Mouton +* Oliver Gugger \ No newline at end of file diff --git a/itest/litd_node.go b/itest/litd_node.go index f419a8ef0..76544959d 100644 --- a/itest/litd_node.go +++ b/itest/litd_node.go @@ -236,6 +236,8 @@ func (cfg *LitNodeConfig) defaultLitdArgs() *litArgs { args["network"] = "simnet" case &chaincfg.RegressionNetParams: args["network"] = "regtest" + case &chaincfg.SigNetParams: + args["network"] = "signet" } // In remote mode, we don't need any lnd specific arguments other than