mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-03-02 23:20:39 +00:00
Support ENR boot records with the Go daemon
This commit is contained in:
parent
052a6ac3bc
commit
1b1cd915db
@ -207,6 +207,12 @@ when networkBackend in [libp2p, libp2pDaemon]:
|
||||
bootstrapEnrs: seq[enr.Record]) {.async.} =
|
||||
when networkBackend == libp2pDaemon:
|
||||
var connected = false
|
||||
var bootstrapNodes = bootstrapNodes
|
||||
for enr in bootstrapEnrs:
|
||||
let enode = toENode(enr)
|
||||
if enode.isOk:
|
||||
bootstrapNodes.add enode.value
|
||||
|
||||
for bootstrapNode in bootstrapNodes:
|
||||
try:
|
||||
let peerInfo = toPeerInfo(bootstrapNode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user