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.
This commit is contained in:
Zahary Karadjov 2020-02-18 20:42:25 +02:00
parent 48c2c5df38
commit 052a6ac3bc
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 5 additions and 4 deletions

View File

@ -231,9 +231,10 @@ when networkBackend in [libp2p, libp2pDaemon]:
node.addKnownPeer bootstrapNode node.addKnownPeer bootstrapNode
await node.start() await node.start()
when false:
await sleepAsync(10.seconds) await sleepAsync(10.seconds)
if bootstrapEnrs.len > 0 and libp2p_successful_dials.value == 0: if libp2p_successful_dials.value == 0:
fatal "Failed to connect to any bootstrap node. Quitting" fatal "Failed to connect to any bootstrap node. Quitting", bootstrapEnrs
quit 1 quit 1
proc saveConnectionAddressFile*(node: Eth2Node, filename: string) = proc saveConnectionAddressFile*(node: Eth2Node, filename: string) =