Skip to content

Commit 63fbd5f

Browse files
committed
lntest: make nobootstrap configurable
This will allow us to test bootstrapping in an itest.
1 parent 38862d3 commit 63fbd5f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lntest/node/config.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ type BaseNodeConfig struct {
146146
ReadMacPath string
147147
InvoiceMacPath string
148148

149-
SkipUnlock bool
150-
Password []byte
149+
SkipUnlock bool
150+
Password []byte
151+
WithPeerBootstrap bool
151152

152153
P2PPort int
153154
RPCPort int
@@ -285,7 +286,6 @@ func (cfg *BaseNodeConfig) GenArgs() []string {
285286
args = append(args, backendArgs...)
286287

287288
nodeArgs := []string{
288-
"--nobootstrap",
289289
"--debuglevel=debug",
290290
"--bitcoin.defaultchanconfs=1",
291291
"--accept-keysend",
@@ -326,6 +326,10 @@ func (cfg *BaseNodeConfig) GenArgs() []string {
326326
args = append(args, "--noseedbackup")
327327
}
328328

329+
if !cfg.WithPeerBootstrap {
330+
args = append(args, "--nobootstrap")
331+
}
332+
329333
switch cfg.DBBackend {
330334
case BackendEtcd:
331335
args = append(args, "--db.backend=etcd")

0 commit comments

Comments
 (0)