From c5049125f8855b43d0c4b29cece2499a532439db Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 5 Dec 2017 17:35:34 -0800 Subject: [PATCH] config+test: increase default num confs for funding flows to 3 In this commit, we increase the default number of confirmations we require for funding flows from 1 to 3. The value of 1 was rather unstable on testnet due to the frequent multi-block re-orgs. Additionally, a value of 3 ensures our funding transaction is sufficiently buried before we deem is usable. --- config.go | 2 +- networktest.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 7182a834..a3fa7fba 100644 --- a/config.go +++ b/config.go @@ -38,7 +38,7 @@ const ( defaultPeerPort = 9735 defaultRPCHost = "localhost" defaultMaxPendingChannels = 1 - defaultNumChanConfs = 1 + defaultNumChanConfs = 3 defaultNoEncryptWallet = false defaultTrickleDelay = 30 * 1000 ) diff --git a/networktest.go b/networktest.go index de86bb46..be9be8d9 100644 --- a/networktest.go +++ b/networktest.go @@ -178,6 +178,7 @@ func (l *lightningNode) genArgs() []string { args = append(args, "--bitcoin.simnet") args = append(args, "--nobootstrap") args = append(args, "--debuglevel=debug") + args = append(args, "--defaultchanconfs=1") args = append(args, fmt.Sprintf("--bitcoin.rpchost=%v", l.cfg.Bitcoin.RPCHost)) args = append(args, fmt.Sprintf("--bitcoin.rpcuser=%v", l.cfg.Bitcoin.RPCUser)) args = append(args, fmt.Sprintf("--bitcoin.rpcpass=%v", l.cfg.Bitcoin.RPCPass))