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.
This commit is contained in:
Olaoluwa Osuntokun 2017-12-05 17:35:34 -08:00
parent bd11529ae9
commit c5049125f8
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
2 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,7 @@ const (
defaultPeerPort = 9735 defaultPeerPort = 9735
defaultRPCHost = "localhost" defaultRPCHost = "localhost"
defaultMaxPendingChannels = 1 defaultMaxPendingChannels = 1
defaultNumChanConfs = 1 defaultNumChanConfs = 3
defaultNoEncryptWallet = false defaultNoEncryptWallet = false
defaultTrickleDelay = 30 * 1000 defaultTrickleDelay = 30 * 1000
) )

View File

@ -178,6 +178,7 @@ func (l *lightningNode) genArgs() []string {
args = append(args, "--bitcoin.simnet") args = append(args, "--bitcoin.simnet")
args = append(args, "--nobootstrap") args = append(args, "--nobootstrap")
args = append(args, "--debuglevel=debug") 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.rpchost=%v", l.cfg.Bitcoin.RPCHost))
args = append(args, fmt.Sprintf("--bitcoin.rpcuser=%v", l.cfg.Bitcoin.RPCUser)) args = append(args, fmt.Sprintf("--bitcoin.rpcuser=%v", l.cfg.Bitcoin.RPCUser))
args = append(args, fmt.Sprintf("--bitcoin.rpcpass=%v", l.cfg.Bitcoin.RPCPass)) args = append(args, fmt.Sprintf("--bitcoin.rpcpass=%v", l.cfg.Bitcoin.RPCPass))