Skip to content

Commit e5e97f6

Browse files
committed
config: add signet network option
1 parent 9ad3f06 commit e5e97f6

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

config.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ type Config struct {
177177

178178
// Network is the Bitcoin network we're running on. This will be parsed
179179
// before the configuration is loaded and will set the correct flag on
180-
// `lnd.bitcoin.mainnet|testnet|regtest` and also for the other daemons.
181-
// That way only one global network flag is needed.
182-
Network string `long:"network" description:"The network the UI and all its components run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet"`
180+
// `lnd.bitcoin.mainnet|testnet|regtest|signet` and also for the other
181+
// daemons. That way only one global network flag is needed.
182+
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"`
183183

184184
Remote *subservers.RemoteConfig `group:"Remote mode options (use when lnd-mode=remote)" namespace:"remote"`
185185

@@ -757,6 +757,9 @@ func setNetwork(cfg *Config) error {
757757
case "simnet":
758758
cfg.Lnd.Bitcoin.SimNet = true
759759

760+
case "signet":
761+
cfg.Lnd.Bitcoin.SigNet = true
762+
760763
default:
761764
return fmt.Errorf("unknown network: %v", cfg.Network)
762765
}

docs/release-notes/release-notes-0.13.7.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
sufficiently long duration (>= 30 seconds) should be used. The default value
3131
was bumped from 30 seconds to 3 minutes.
3232

33+
* Add support for connecting LiT to a [signet
34+
network](https://github.com/lightninglabs/lightning-terminal/pull/902). This
35+
can be done using the `--network=signet` config option.
36+
3337
### Technical and Architectural Updates
3438

3539
## Integrated Binary Updates
@@ -46,4 +50,5 @@
4650

4751
# Contributors (Alphabetical Order)
4852

49-
- Oliver Gugger
53+
* Elle Mouton
54+
* Oliver Gugger

itest/litd_node.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ func (cfg *LitNodeConfig) defaultLitdArgs() *litArgs {
236236
args["network"] = "simnet"
237237
case &chaincfg.RegressionNetParams:
238238
args["network"] = "regtest"
239+
case &chaincfg.SigNetParams:
240+
args["network"] = "signet"
239241
}
240242

241243
// In remote mode, we don't need any lnd specific arguments other than

0 commit comments

Comments
 (0)