Skip to content

Commit

Permalink
lncli: add use_mc flag
Browse files Browse the repository at this point in the history
  • Loading branch information
joostjager committed Jul 18, 2019
1 parent fc337cd commit 541e5f4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions cmd/lncli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 541e5f4

Please sign in to comment.