mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-18 09:27:05 +00:00
Bump eth2-testnets for more discv5.1 bootstrap nodes on medalla (#1911)
And improve logging UX a bit by ignoring comments or newlines
This commit is contained in:
parent
8b90a34914
commit
8102d5dc4d
@ -16,9 +16,6 @@ export
|
|||||||
|
|
||||||
proc parseBootstrapAddress*(address: TaintedString):
|
proc parseBootstrapAddress*(address: TaintedString):
|
||||||
Result[enr.Record, cstring] =
|
Result[enr.Record, cstring] =
|
||||||
if address.len == 0:
|
|
||||||
return err "an empty string is not a valid bootstrap node"
|
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
address = string(address)
|
address = string(address)
|
||||||
|
|
||||||
@ -38,6 +35,10 @@ proc parseBootstrapAddress*(address: TaintedString):
|
|||||||
|
|
||||||
proc addBootstrapNode*(bootstrapAddr: string,
|
proc addBootstrapNode*(bootstrapAddr: string,
|
||||||
bootstrapEnrs: var seq[enr.Record]) =
|
bootstrapEnrs: var seq[enr.Record]) =
|
||||||
|
# Ignore empty lines or lines starting with #
|
||||||
|
if bootstrapAddr.len == 0 or bootstrapAddr[0] == '#':
|
||||||
|
return
|
||||||
|
|
||||||
let enrRes = parseBootstrapAddress(bootstrapAddr)
|
let enrRes = parseBootstrapAddress(bootstrapAddr)
|
||||||
if enrRes.isOk:
|
if enrRes.isOk:
|
||||||
bootstrapEnrs.add enrRes.value
|
bootstrapEnrs.add enrRes.value
|
||||||
|
2
vendor/eth2-testnets
vendored
2
vendor/eth2-testnets
vendored
@ -1 +1 @@
|
|||||||
Subproject commit d03f7e62f52252497c521bf597667d90210d46a2
|
Subproject commit 2a5cc08a557051947c4076674e01a93bcefed46a
|
Loading…
x
Reference in New Issue
Block a user