lntest: make nobootstrap configurable

This will allow us to test bootstrapping in an itest.
This commit is contained in:
Elle Mouton committed 2025-06-24 12:48:01 +02:00
1 parent 38862d3b91
commit 63fbd5fbcb
1 file changed
+7 -3
+7 -3
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")