Merge pull request #4607 from bhandras/routing_experiments

lncli: add outgoing_chanid to queryroutes
This commit is contained in:
András Bánki-Horváth 2020-09-14 13:26:56 +02:00 committed by GitHub
commit d62b93e012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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