fix(setup): do not attempt connecting to empy dynamic bootstrap node list (#1088)

This commit is contained in:
Hanno Cornelius 2022-08-24 17:44:43 +02:00 committed by GitHub
parent 8a6b1cfba6
commit 11158c3ea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1071,8 +1071,9 @@ when isMainModule:
if conf.staticnodes.len > 0: if conf.staticnodes.len > 0:
waitFor connectToNodes(node, conf.staticnodes, "static") waitFor connectToNodes(node, conf.staticnodes, "static")
info "Connecting to dynamic bootstrap peers" if dynamicBootstrapNodes.len > 0:
waitFor connectToNodes(node, dynamicBootstrapNodes, "dynamic bootstrap") info "Connecting to dynamic bootstrap peers"
waitFor connectToNodes(node, dynamicBootstrapNodes, "dynamic bootstrap")
# Start keepalive, if enabled # Start keepalive, if enabled
if conf.keepAlive: if conf.keepAlive: