Skip to content

Commit d198bb8

Browse files
authored
Merge pull request #856 from hieblmi/signet-support
Signet support
2 parents 7f13441 + 889a938 commit d198bb8

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

loopd/config.go

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

146146
type 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 {
197197
const (
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.

loopd/daemon.go

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

sample-loopd.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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.

0 commit comments

Comments
 (0)