cmd/lncli: add --final_cltv_delta to queryroutes
This commit is contained in:
parent
982f53e6f2
commit
f4c9192df3
@ -2476,6 +2476,11 @@ var queryRoutesCommand = cli.Command{
|
|||||||
Usage: "the max number of routes to be returned (default: 10)",
|
Usage: "the max number of routes to be returned (default: 10)",
|
||||||
Value: 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),
|
Action: actionDecorator(queryRoutes),
|
||||||
}
|
}
|
||||||
@ -2516,9 +2521,10 @@ func queryRoutes(ctx *cli.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
req := &lnrpc.QueryRoutesRequest{
|
req := &lnrpc.QueryRoutesRequest{
|
||||||
PubKey: dest,
|
PubKey: dest,
|
||||||
Amt: amt,
|
Amt: amt,
|
||||||
NumRoutes: int32(ctx.Int("num_max_routes")),
|
NumRoutes: int32(ctx.Int("num_max_routes")),
|
||||||
|
FinalCltvDelta: int32(ctx.Int("final_cltv_delta")),
|
||||||
}
|
}
|
||||||
|
|
||||||
route, err := client.QueryRoutes(ctxb, req)
|
route, err := client.QueryRoutes(ctxb, req)
|
||||||
|
Loading…
Reference in New Issue
Block a user