Skip to content

Signet support #856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion loopd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ type viewParameters struct{}

type Config struct {
ShowVersion bool `long:"version" description:"Display version information and exit"`
Network string `long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet"`
Network string `long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet" choice:"signet"`
RPCListen string `long:"rpclisten" description:"Address to listen on for gRPC clients"`
RESTListen string `long:"restlisten" description:"Address to listen on for REST clients"`
CORSOrigin string `long:"corsorigin" description:"The value to send in the Access-Control-Allow-Origin header. Header will be omitted if empty."`
Expand Down Expand Up @@ -197,6 +197,7 @@ type Config struct {
const (
mainnetServer = "swap.lightning.today:11010"
testnetServer = "test.swap.lightning.today:11010"
signetServer = "signet.swap.lightning.today:11010"
)

// DefaultConfig returns all default values for the Config struct.
Expand Down
5 changes: 5 additions & 0 deletions loopd/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,13 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
switch d.cfg.Network {
case "mainnet":
d.cfg.Server.Host = mainnetServer

case "testnet":
d.cfg.Server.Host = testnetServer

case "signet":
d.cfg.Server.Host = signetServer

default:
return errors.New("no swap server address specified")
}
Expand Down
2 changes: 1 addition & 1 deletion sample-loopd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

[Application Options]

; The network to run on which can be [regtest|testnet|mainnet|simnet].
; The network to run on which can be [regtest|testnet|mainnet|simnet|signet].
; network=mainnet

; Address to listen on for gRPC clients.
Expand Down
Loading