lncli: add use_mc flag
This commit is contained in:
parent
fc337cd34f
commit
541e5f4af7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user