From 4ffe744364307bcf66f8e41499d11245b53ba784 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Thu, 10 Sep 2020 19:00:07 +0200 Subject: [PATCH] lncli: add outgoing_chanid to queryroutes --- cmd/lncli/commands.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 4a19b908..5c93f102 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -2142,6 +2142,11 @@ var queryRoutesCommand = cli.Command{ Name: "use_mc", Usage: "use mission control probabilities", }, + cli.Uint64Flag{ + Name: "outgoing_chanid", + Usage: "(optional) the channel id of the channel " + + "that must be taken to the first hop", + }, cltvLimitFlag, }, Action: actionDecorator(queryRoutes), @@ -2194,6 +2199,7 @@ func queryRoutes(ctx *cli.Context) error { FinalCltvDelta: int32(ctx.Int("final_cltv_delta")), UseMissionControl: ctx.Bool("use_mc"), CltvLimit: uint32(ctx.Uint64(cltvLimitFlag.Name)), + OutgoingChanId: ctx.Uint64("outgoing_chanid"), } route, err := client.QueryRoutes(ctxb, req)