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:
Kim De Mey 2020-10-27 08:44:46 +01:00 committed by GitHub
parent 8b90a34914
commit 8102d5dc4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -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