File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ type viewParameters struct{}
145145
146146type Config struct {
147147 ShowVersion bool `long:"version" description:"Display version information and exit"`
148- Network string `long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet"`
148+ Network string `long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet" choice:"signet" `
149149 RPCListen string `long:"rpclisten" description:"Address to listen on for gRPC clients"`
150150 RESTListen string `long:"restlisten" description:"Address to listen on for REST clients"`
151151 CORSOrigin string `long:"corsorigin" description:"The value to send in the Access-Control-Allow-Origin header. Header will be omitted if empty."`
@@ -197,6 +197,7 @@ type Config struct {
197197const (
198198 mainnetServer = "swap.lightning.today:11010"
199199 testnetServer = "test.swap.lightning.today:11010"
200+ signetServer = "signet.swap.lightning.today:11010"
200201)
201202
202203// DefaultConfig returns all default values for the Config struct.
Original file line number Diff line number Diff line change @@ -373,8 +373,13 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
373373 switch d .cfg .Network {
374374 case "mainnet" :
375375 d .cfg .Server .Host = mainnetServer
376+
376377 case "testnet" :
377378 d .cfg .Server .Host = testnetServer
379+
380+ case "signet" :
381+ d .cfg .Server .Host = signetServer
382+
378383 default :
379384 return errors .New ("no swap server address specified" )
380385 }
Original file line number Diff line number Diff line change 1818
1919[Application Options]
2020
21- ; The network to run on which can be [regtest|testnet|mainnet|simnet].
21+ ; The network to run on which can be [regtest|testnet|mainnet|simnet|signet ].
2222; network=mainnet
2323
2424; Address to listen on for gRPC clients.
You can’t perform that action at this time.
0 commit comments