File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ type viewParameters struct{}
147147
148148type Config struct {
149149 ShowVersion bool `long:"version" description:"Display version information and exit"`
150- Network string `long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet"`
150+ Network string `long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet" choice:"signet" `
151151 RPCListen string `long:"rpclisten" description:"Address to listen on for gRPC clients"`
152152 RESTListen string `long:"restlisten" description:"Address to listen on for REST clients"`
153153 CORSOrigin string `long:"corsorigin" description:"The value to send in the Access-Control-Allow-Origin header. Header will be omitted if empty."`
@@ -202,6 +202,7 @@ type Config struct {
202202const (
203203 mainnetServer = "swap.lightning.today:11010"
204204 testnetServer = "test.swap.lightning.today:11010"
205+ signetServer = "signet.swap.lightning.today:11010"
205206)
206207
207208// DefaultConfig returns all default values for the Config struct.
Original file line number Diff line number Diff line change @@ -377,8 +377,13 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
377377 switch d .cfg .Network {
378378 case "mainnet" :
379379 d .cfg .Server .Host = mainnetServer
380+
380381 case "testnet" :
381382 d .cfg .Server .Host = testnetServer
383+
384+ case "signet" :
385+ d .cfg .Server .Host = signetServer
386+
382387 default :
383388 return errors .New ("no swap server address specified" )
384389 }
You can’t perform that action at this time.
0 commit comments