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):
|
||||
Result[enr.Record, cstring] =
|
||||
if address.len == 0:
|
||||
return err "an empty string is not a valid bootstrap node"
|
||||
|
||||
logScope:
|
||||
address = string(address)
|
||||
|
||||
|
@ -38,6 +35,10 @@ proc parseBootstrapAddress*(address: TaintedString):
|
|||
|
||||
proc addBootstrapNode*(bootstrapAddr: string,
|
||||
bootstrapEnrs: var seq[enr.Record]) =
|
||||
# Ignore empty lines or lines starting with #
|
||||
if bootstrapAddr.len == 0 or bootstrapAddr[0] == '#':
|
||||
return
|
||||
|
||||
let enrRes = parseBootstrapAddress(bootstrapAddr)
|
||||
if enrRes.isOk:
|
||||
bootstrapEnrs.add enrRes.value
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit d03f7e62f52252497c521bf597667d90210d46a2
|
||||
Subproject commit 2a5cc08a557051947c4076674e01a93bcefed46a
|
Loading…
Reference in New Issue