lntest: make nobootstrap configurable

This will allow us to test bootstrapping in an itest.
This commit is contained in:
Elle Mouton
2024-11-18 13:42:18 +02:00
parent 38862d3b91
commit 63fbd5fbcb

View File

@@ -146,8 +146,9 @@ type BaseNodeConfig struct {
ReadMacPath string
InvoiceMacPath string
SkipUnlock bool
Password []byte
SkipUnlock bool
Password []byte
WithPeerBootstrap bool
P2PPort int
RPCPort int
@@ -285,7 +286,6 @@ func (cfg *BaseNodeConfig) GenArgs() []string {
args = append(args, backendArgs...)
nodeArgs := []string{
"--nobootstrap",
"--debuglevel=debug",
"--bitcoin.defaultchanconfs=1",
"--accept-keysend",
@@ -326,6 +326,10 @@ func (cfg *BaseNodeConfig) GenArgs() []string {
args = append(args, "--noseedbackup")
}
if !cfg.WithPeerBootstrap {
args = append(args, "--nobootstrap")
}
switch cfg.DBBackend {
case BackendEtcd:
args = append(args, "--db.backend=etcd")