Skip to content

Commit 7a78399

Browse files
committed
daemon: add signet support
1 parent fa759a9 commit 7a78399

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

loopd/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ type viewParameters struct{}
147147

148148
type 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 {
202202
const (
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.

loopd/daemon.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)