diff --git a/eth/p2p.nim b/eth/p2p.nim index df0755e..9bdf775 100644 --- a/eth/p2p.nim +++ b/eth/p2p.nim @@ -104,11 +104,10 @@ proc connectToNetwork*(node: EthereumNode, if enableDiscovery: node.discovery.open() await node.discovery.bootstrap() + node.peerPool.start() else: info "Discovery disabled" - node.peerPool.start() - while node.peerPool.connectedNodes.len == 0: trace "Waiting for more peers", peers = node.peerPool.connectedNodes.len await sleepAsync(500.milliseconds)