Skip to content

Commit 72b9dbc

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

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ type Config struct {
179179
// before the configuration is loaded and will set the correct flag on
180180
// `lnd.bitcoin.mainnet|testnet|regtest` and also for the other daemons.
181181
// 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"`
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
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 network](). This can be done using the
34+
`--network=signet` config option.
35+
3336
### Technical and Architectural Updates
3437

3538
## Integrated Binary Updates
@@ -46,4 +49,5 @@
4649

4750
# Contributors (Alphabetical Order)
4851

49-
- Oliver Gugger
52+
* Elle Mouton
53+
* 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)