From 541e5f4af7a8121ec79be132c940da884727bf62 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Wed, 26 Jun 2019 14:35:03 +0200 Subject: [PATCH] lncli: add use_mc flag --- cmd/lncli/commands.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 9b8e6429..46a05d0f 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -2997,6 +2997,10 @@ var queryRoutesCommand = cli.Command{ Usage: "(optional) number of blocks the last hop has to reveal " + "the preimage", }, + cli.BoolFlag{ + Name: "use_mc", + Usage: "use mission control probabilities", + }, }, Action: actionDecorator(queryRoutes), } @@ -3042,10 +3046,11 @@ func queryRoutes(ctx *cli.Context) error { } req := &lnrpc.QueryRoutesRequest{ - PubKey: dest, - Amt: amt, - FeeLimit: feeLimit, - FinalCltvDelta: int32(ctx.Int("final_cltv_delta")), + PubKey: dest, + Amt: amt, + FeeLimit: feeLimit, + FinalCltvDelta: int32(ctx.Int("final_cltv_delta")), + UseMissionControl: ctx.Bool("use_mc"), } route, err := client.QueryRoutes(ctxb, req)