From f1aa3d20717005ff73ae03570779bd882dc0d17b Mon Sep 17 00:00:00 2001 From: carla Date: Thu, 29 Oct 2020 11:29:57 +0200 Subject: [PATCH] lncli: allow setting max local csv for open channel requests --- cmd/lncli/cmd_open_channel.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/lncli/cmd_open_channel.go b/cmd/lncli/cmd_open_channel.go index b8c1862c7..b27c25953 100644 --- a/cmd/lncli/cmd_open_channel.go +++ b/cmd/lncli/cmd_open_channel.go @@ -135,6 +135,13 @@ var openChannelCommand = cli.Command{ "not set, we will scale the value according to the " + "channel size", }, + cli.Uint64Flag{ + Name: "max_local_csv", + Usage: "(optional) the maximum number of blocks that " + + "we will allow the remote peer to require we " + + "wait before accessing our funds in the case " + + "of a unilateral close.", + }, cli.Uint64Flag{ Name: "min_confs", Usage: "(optional) the minimum number of confirmations " + @@ -207,6 +214,7 @@ func openChannel(ctx *cli.Context) error { SpendUnconfirmed: minConfs == 0, CloseAddress: ctx.String("close_address"), RemoteMaxValueInFlightMsat: ctx.Uint64("remote_max_value_in_flight_msat"), + MaxLocalCsv: uint32(ctx.Uint64("max_local_csv")), } switch {