mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
lntest: make nobootstrap configurable
This will allow us to test bootstrapping in an itest.
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user