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 {