Skip to content

Commit ce7ac7d

Browse files
committed
terminal+config: implement remote lnd mode
With this commit we add all config options that are necessary to connect to a remote lnd node instead of starting one in the same process as LiT.
1 parent b3b00c7 commit ce7ac7d

File tree

4 files changed

+531
-160
lines changed

4 files changed

+531
-160
lines changed

cmd/litd/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"errors"
45
"fmt"
56
"os"
67

@@ -11,8 +12,9 @@ import (
1112
// main starts the lightning-terminal application.
1213
func main() {
1314
err := terminal.New().Run()
14-
if e, ok := err.(*flags.Error); err != nil &&
15-
(!ok || e.Type != flags.ErrHelp) {
15+
var flagErr *flags.Error
16+
if err != nil && errors.As(err, &flagErr) &&
17+
flagErr.Type != flags.ErrHelp {
1618

1719
_, _ = fmt.Fprintln(os.Stderr, err)
1820
os.Exit(1)

0 commit comments

Comments
 (0)