Skip to content

Commit 4299147

Browse files
committed
main: add --private flag to loop in
Adding the --private flag informs loopd that the connected node is considered private (all channels are marked private) and the loop in server may have trouble routing the payment. To handle this, loopd will construct some hophints that will be sent to the loopin server to help route. This commit merely adds the flag to the cli.
1 parent 9db43a4 commit 4299147

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd/loop/loopin.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ var (
3737
Usage: "Route hints that can each be individually used " +
3838
"to assist in reaching the invoice's destination.",
3939
}
40+
privateFlag = cli.BoolFlag{
41+
Name: "private",
42+
Usage: "Generates and passes routehints. Should be used " +
43+
"if the connected node is only reachable via private " +
44+
"channels",
45+
}
4046

4147
loopInCommand = cli.Command{
4248
Name: "in",
@@ -68,6 +74,7 @@ var (
6874
labelFlag,
6975
verboseFlag,
7076
routeHintsFlag,
77+
privateFlag,
7178
},
7279
Action: loopIn,
7380
}

0 commit comments

Comments
 (0)