File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ type viewParameters struct{}
145
145
146
146
type Config struct {
147
147
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" `
149
149
RPCListen string `long:"rpclisten" description:"Address to listen on for gRPC clients"`
150
150
RESTListen string `long:"restlisten" description:"Address to listen on for REST clients"`
151
151
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 {
197
197
const (
198
198
mainnetServer = "swap.lightning.today:11010"
199
199
testnetServer = "test.swap.lightning.today:11010"
200
+ signetServer = "signet.swap.lightning.today:11010"
200
201
)
201
202
202
203
// 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 {
373
373
switch d .cfg .Network {
374
374
case "mainnet" :
375
375
d .cfg .Server .Host = mainnetServer
376
+
376
377
case "testnet" :
377
378
d .cfg .Server .Host = testnetServer
379
+
380
+ case "signet" :
381
+ d .cfg .Server .Host = signetServer
382
+
378
383
default :
379
384
return errors .New ("no swap server address specified" )
380
385
}
Original file line number Diff line number Diff line change 18
18
19
19
[Application Options]
20
20
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 ].
22
22
; network=mainnet
23
23
24
24
; Address to listen on for gRPC clients.
You can’t perform that action at this time.
0 commit comments