From b343ef24e7d3264f3a78cffa5c30892856978a84 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 8 Sep 2018 14:40:55 -0700 Subject: [PATCH] cmd/lncli+fundingmanager: use a default num min confs for 1 for openchannel --- cmd/lncli/commands.go | 1 + fundingmanager.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 8d852ed8..f88b3976 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -474,6 +474,7 @@ var openChannelCommand = cli.Command{ Usage: "(optional) the minimum number of confirmations " + "each one of your outputs used for the funding " + "transaction must satisfy", + Value: 1, }, }, Action: actionDecorator(openChannel), diff --git a/fundingmanager.go b/fundingmanager.go index 2ab37788..49b23ecd 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -2631,9 +2631,9 @@ func (f *fundingManager) handleInitFundingMsg(msg *initFundingMsg) { } fndgLog.Infof("Initiating fundingRequest(localAmt=%v, remoteAmt=%v, "+ - "capacity=%v, chainhash=%v, peer=%x, dustLimit=%v)", localAmt, - msg.pushAmt, capacity, msg.chainHash, peerKey.SerializeCompressed(), - ourDustLimit) + "capacity=%v, chainhash=%v, peer=%x, dustLimit=%v, min_confs=%v)", + localAmt, msg.pushAmt, capacity, msg.chainHash, + peerKey.SerializeCompressed(), ourDustLimit, msg.minConfs) // First, we'll query the fee estimator for a fee that should get the // commitment transaction confirmed by the next few blocks (conf target