mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
daemon: add signet support
This commit is contained in:
parent
7f1344113f
commit
22b1f53e3e
2 changed files with 7 additions and 1 deletions
|
|
@ -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."`
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue