From 63fbd5fbcb5cbcf8107fd84259c4422b9aa6f724 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Mon, 18 Nov 2024 13:42:18 +0200 Subject: [PATCH] lntest: make nobootstrap configurable This will allow us to test bootstrapping in an itest. --- lntest/node/config.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lntest/node/config.go b/lntest/node/config.go index 694e26c3e..7f3b1df7f 100644 --- a/lntest/node/config.go +++ b/lntest/node/config.go @@ -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")