From 4299147895ee145e9e9cd85f1c27780cf06527b1 Mon Sep 17 00:00:00 2001 From: Harsha Goli Date: Thu, 21 Oct 2021 23:55:36 -0400 Subject: [PATCH] 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. --- cmd/loop/loopin.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/loop/loopin.go b/cmd/loop/loopin.go index dbbdc14..22456ab 100644 --- a/cmd/loop/loopin.go +++ b/cmd/loop/loopin.go @@ -37,6 +37,12 @@ var ( Usage: "Route hints that can each be individually used " + "to assist in reaching the invoice's destination.", } + privateFlag = cli.BoolFlag{ + Name: "private", + Usage: "Generates and passes routehints. Should be used " + + "if the connected node is only reachable via private " + + "channels", + } loopInCommand = cli.Command{ Name: "in", @@ -68,6 +74,7 @@ var ( labelFlag, verboseFlag, routeHintsFlag, + privateFlag, }, Action: loopIn, }