From 052a6ac3bcfa8c45428e8823ae808c5e301c3de9 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 18 Feb 2020 20:42:25 +0200 Subject: [PATCH] Hotfix: disable the bootstrap node connectivity check This used to behave properly before the rebase, but currently it forces the bootstrap node to exit, because it ends up being launched with an ENR list telling it to connect to itself. The root cause will be investigated in a follow-up PR. --- beacon_chain/eth2_network.nim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/beacon_chain/eth2_network.nim b/beacon_chain/eth2_network.nim index 05954567f..b984596f5 100644 --- a/beacon_chain/eth2_network.nim +++ b/beacon_chain/eth2_network.nim @@ -231,10 +231,11 @@ when networkBackend in [libp2p, libp2pDaemon]: node.addKnownPeer bootstrapNode await node.start() - await sleepAsync(10.seconds) - if bootstrapEnrs.len > 0 and libp2p_successful_dials.value == 0: - fatal "Failed to connect to any bootstrap node. Quitting" - quit 1 + when false: + await sleepAsync(10.seconds) + if libp2p_successful_dials.value == 0: + fatal "Failed to connect to any bootstrap node. Quitting", bootstrapEnrs + quit 1 proc saveConnectionAddressFile*(node: Eth2Node, filename: string) = when networkBackend == libp2p: