Skip to content

Commit

Permalink
config: add signet network option
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed Nov 9, 2024
1 parent 9ad3f06 commit 72b9dbc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ type Config struct {
// 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"`
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"`

Expand Down Expand Up @@ -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)
}
Expand Down
6 changes: 5 additions & 1 deletion docs/release-notes/release-notes-0.13.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
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](). This can be done using the
`--network=signet` config option.

### Technical and Architectural Updates

## Integrated Binary Updates
Expand All @@ -46,4 +49,5 @@

# Contributors (Alphabetical Order)

- Oliver Gugger
* Elle Mouton
* Oliver Gugger
2 changes: 2 additions & 0 deletions itest/litd_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72b9dbc

Please sign in to comment.