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:
parent
bd11529ae9
commit
c5049125f8
@ -38,7 +38,7 @@ const (
|
||||
defaultPeerPort = 9735
|
||||
defaultRPCHost = "localhost"
|
||||
defaultMaxPendingChannels = 1
|
||||
defaultNumChanConfs = 1
|
||||
defaultNumChanConfs = 3
|
||||
defaultNoEncryptWallet = false
|
||||
defaultTrickleDelay = 30 * 1000
|
||||
)
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user