File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,9 @@ type BaseNodeConfig struct {
146
146
ReadMacPath string
147
147
InvoiceMacPath string
148
148
149
- SkipUnlock bool
150
- Password []byte
149
+ SkipUnlock bool
150
+ Password []byte
151
+ WithPeerBootstrap bool
151
152
152
153
P2PPort int
153
154
RPCPort int
@@ -285,7 +286,6 @@ func (cfg *BaseNodeConfig) GenArgs() []string {
285
286
args = append (args , backendArgs ... )
286
287
287
288
nodeArgs := []string {
288
- "--nobootstrap" ,
289
289
"--debuglevel=debug" ,
290
290
"--bitcoin.defaultchanconfs=1" ,
291
291
"--accept-keysend" ,
@@ -326,6 +326,10 @@ func (cfg *BaseNodeConfig) GenArgs() []string {
326
326
args = append (args , "--noseedbackup" )
327
327
}
328
328
329
+ if ! cfg .WithPeerBootstrap {
330
+ args = append (args , "--nobootstrap" )
331
+ }
332
+
329
333
switch cfg .DBBackend {
330
334
case BackendEtcd :
331
335
args = append (args , "--db.backend=etcd" )
You can’t perform that action at this time.
0 commit comments