Enable discovery service regardless bootnodes are provided

This commit is contained in:
Yuriy Glukhov 2019-02-27 10:15:24 +02:00 committed by zah
parent 34e6149f89
commit 5b60c3b45f
1 changed files with 1 additions and 2 deletions

View File

@ -100,10 +100,9 @@ proc connectToNetwork(node: BeaconNode) {.async.} =
if bootstrapNodes.len > 0:
info "Connecting to bootstrap nodes", bootstrapNodes
await node.network.connectToNetwork(bootstrapNodes)
else:
info "Waiting for connections"
node.network.startListening()
await node.network.connectToNetwork(bootstrapNodes)
proc sync*(node: BeaconNode): Future[bool] {.async.} =
if node.beaconState.slotDistanceFromNow() > WEAK_SUBJECTVITY_PERIOD.int64: