This commit is contained in:
Jacob Schuler 2026-08-08 12:26:08 +00:00 committed by GitHub
commit 28e3277fc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,6 +76,7 @@ import (
const (
MainnetServer = "autopilot.lightning.finance:12010"
TestnetServer = "test.autopilot.lightning.finance:12010"
SignetServer = "signet.autopilot.lightning.finance:12010"
// lndWalletReadyStatus is a custom status that will be used with the
// LND subserver. If the subserver is in this state then it will allow
@ -492,9 +493,12 @@ func (g *LightningTerminal) start(ctx context.Context) error {
g.cfg.Autopilot.Address = MainnetServer
case "testnet":
g.cfg.Autopilot.Address = TestnetServer
case "signet":
g.cfg.Autopilot.Address = SignetServer
default:
return errors.New("no autopilot server " +
"address specified")
return fmt.Errorf("no autopilot server "+
"address specified for network %s",
g.cfg.Network)
}
}