lncli: add outgoing_chanid to queryroutes

This commit is contained in:
Andras Banki-Horvath 2020-09-10 19:00:07 +02:00
parent 8668248d96
commit 4ffe744364
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8

@ -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)