From 8e15b48a05723006f5d400219d44da804bd31805 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Thu, 9 Aug 2018 19:40:11 -0700 Subject: [PATCH] cmd/lncli: expose min confs parameter for OpenChannel command --- cmd/lncli/commands.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index be63d4e7..fecca085 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -472,6 +472,12 @@ var openChannelCommand = cli.Command{ "not set, we will scale the value according to the " + "channel size", }, + cli.Uint64Flag{ + Name: "min_confs", + Usage: "(optional) the minimum number of confirmations " + + "each one of your outputs used for the funding " + + "transaction must satisfy", + }, }, Action: actionDecorator(openChannel), } @@ -496,6 +502,7 @@ func openChannel(ctx *cli.Context) error { SatPerByte: ctx.Int64("sat_per_byte"), MinHtlcMsat: ctx.Int64("min_htlc_msat"), RemoteCsvDelay: uint32(ctx.Uint64("remote_csv_delay")), + MinConfs: int32(ctx.Uint64("min_confs")), } switch {