From 0d37ed7a2aa5dbc88a1d9d6ab8b95177b6f0eed2 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 28 Jun 2019 14:55:21 +0300 Subject: [PATCH] Fix a problem for the bootstrap nodes connectToNetwork is executed for the bootstrap node as well, but it should not quit when peers are not yet present. --- beacon_chain/eth2_network.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/eth2_network.nim b/beacon_chain/eth2_network.nim index 975dfa9eb..dd9df1a48 100644 --- a/beacon_chain/eth2_network.nim +++ b/beacon_chain/eth2_network.nim @@ -206,7 +206,7 @@ else: except PeerDisconnected: error "Failed to connect to bootstrap node", node = bootstrapNode - if connected == false: + if bootstrapNodes.len > 0 and connected == false: fatal "Failed to connect to any bootstrap node. Quitting." quit 1