From 5b60c3b45f01116ddcd80eb66e7d14e4024f2330 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Wed, 27 Feb 2019 10:15:24 +0200 Subject: [PATCH] Enable discovery service regardless bootnodes are provided --- beacon_chain/beacon_node.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beacon_chain/beacon_node.nim b/beacon_chain/beacon_node.nim index 8b9cdeceb..e1c44350f 100644 --- a/beacon_chain/beacon_node.nim +++ b/beacon_chain/beacon_node.nim @@ -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: