Skip to content

Commit 9a03151

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 506549c commit 9a03151

File tree

4 files changed

+538
-167
lines changed

4 files changed

+538
-167
lines changed

cmd/litd/main.go

Lines changed: 4 additions & 3 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,9 +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) {
16-
15+
var flagErr *flags.Error
16+
isFlagErr := errors.As(err, &flagErr)
17+
if err != nil && (!isFlagErr || flagErr.Type != flags.ErrHelp) {
1718
_, _ = fmt.Fprintln(os.Stderr, err)
1819
os.Exit(1)
1920
}

0 commit comments

Comments
 (0)