Skip to content

Commit

Permalink
Create ENR properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Oct 3, 2022
1 parent 8c1c456 commit 128fcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/network/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class Network implements INetwork {
...opts,
discv5: discv5Enabled
? {
enr: opts.enr ?? new ENR(),
enr: opts.enr ?? ENR.createFromPeerId(libp2p.peerId),
bootnodeEnrs: opts.bootnodes ?? [],
bindMultiaddr: getIp4MultiaddStr(discv5ListenAddress, "udp", discv5Port),
discv5FirstQueryDelayMs: opts.discv5FirstQueryDelayMs,
Expand Down

0 comments on commit 128fcfb

Please sign in to comment.