mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
Quickfix for toEnode that fails
This commit is contained in:
parent
a857168c38
commit
1ec7d6e168
@ -135,9 +135,6 @@ proc addBootstrapNode*(bootstrapAddr: string,
|
|||||||
localPubKey: PublicKey) =
|
localPubKey: PublicKey) =
|
||||||
let enrRes = parseBootstrapAddress(bootstrapAddr)
|
let enrRes = parseBootstrapAddress(bootstrapAddr)
|
||||||
if enrRes.isOk:
|
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:
|
else:
|
||||||
warn "Ignoring invalid bootstrap address",
|
warn "Ignoring invalid bootstrap address",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user