cmd/lncli+fundingmanager: use a default num min confs for 1 for openchannel

This commit is contained in:
Olaoluwa Osuntokun 2018-09-08 14:40:55 -07:00
parent d4fdc41c8c
commit b343ef24e7
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
2 changed files with 4 additions and 3 deletions

@ -474,6 +474,7 @@ var openChannelCommand = cli.Command{
Usage: "(optional) the minimum number of confirmations " + Usage: "(optional) the minimum number of confirmations " +
"each one of your outputs used for the funding " + "each one of your outputs used for the funding " +
"transaction must satisfy", "transaction must satisfy",
Value: 1,
}, },
}, },
Action: actionDecorator(openChannel), Action: actionDecorator(openChannel),

@ -2631,9 +2631,9 @@ func (f *fundingManager) handleInitFundingMsg(msg *initFundingMsg) {
} }
fndgLog.Infof("Initiating fundingRequest(localAmt=%v, remoteAmt=%v, "+ fndgLog.Infof("Initiating fundingRequest(localAmt=%v, remoteAmt=%v, "+
"capacity=%v, chainhash=%v, peer=%x, dustLimit=%v)", localAmt, "capacity=%v, chainhash=%v, peer=%x, dustLimit=%v, min_confs=%v)",
msg.pushAmt, capacity, msg.chainHash, peerKey.SerializeCompressed(), localAmt, msg.pushAmt, capacity, msg.chainHash,
ourDustLimit) peerKey.SerializeCompressed(), ourDustLimit, msg.minConfs)
// First, we'll query the fee estimator for a fee that should get the // First, we'll query the fee estimator for a fee that should get the
// commitment transaction confirmed by the next few blocks (conf target // commitment transaction confirmed by the next few blocks (conf target