From f4c9192df330ecc91d195725a88b99d40d9f2f08 Mon Sep 17 00:00:00 2001 From: t4sk Date: Thu, 15 Feb 2018 20:14:56 +0700 Subject: [PATCH] cmd/lncli: add --final_cltv_delta to queryroutes --- cmd/lncli/commands.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 81636045..8e8f24ad 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -2476,6 +2476,11 @@ var queryRoutesCommand = cli.Command{ Usage: "the max number of routes to be returned (default: 10)", Value: 10, }, + cli.Int64Flag{ + Name: "final_cltv_delta", + Usage: "(optional) number of blocks the last hop has to reveal " + + "the preimage", + }, }, Action: actionDecorator(queryRoutes), } @@ -2516,9 +2521,10 @@ func queryRoutes(ctx *cli.Context) error { } req := &lnrpc.QueryRoutesRequest{ - PubKey: dest, - Amt: amt, - NumRoutes: int32(ctx.Int("num_max_routes")), + PubKey: dest, + Amt: amt, + NumRoutes: int32(ctx.Int("num_max_routes")), + FinalCltvDelta: int32(ctx.Int("final_cltv_delta")), } route, err := client.QueryRoutes(ctxb, req)