From 1ec7d6e168c8a0ae53526ef608217c6ace27b33c Mon Sep 17 00:00:00 2001 From: kdeme Date: Tue, 26 May 2020 22:30:46 +0200 Subject: [PATCH] Quickfix for toEnode that fails --- beacon_chain/eth2_discovery.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/beacon_chain/eth2_discovery.nim b/beacon_chain/eth2_discovery.nim index 4062bbcad..ca4002d87 100644 --- a/beacon_chain/eth2_discovery.nim +++ b/beacon_chain/eth2_discovery.nim @@ -135,10 +135,7 @@ proc addBootstrapNode*(bootstrapAddr: string, localPubKey: PublicKey) = let enrRes = parseBootstrapAddress(bootstrapAddr) if enrRes.isOk: - let enodeRes = enrRes.value.toENode - if enodeRes.isOk: - if enodeRes.value.pubKey != localPubKey: - bootEnrs.add enrRes.value + bootEnrs.add enrRes.value else: warn "Ignoring invalid bootstrap address", bootstrapAddr, reason = enrRes.error