mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
eth: initialize ENR entry in StartENRUpdater function
This commit is contained in:
parent
23a5bda5f6
commit
1da5d10e5e
1 changed files with 1 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ func StartENRUpdater(chain *core.BlockChain, ln *enode.LocalNode) {
|
|||
var newHead = make(chan core.ChainHeadEvent, 10)
|
||||
sub := chain.SubscribeChainHeadEvent(newHead)
|
||||
|
||||
ln.Set(currentENREntry(chain))
|
||||
go func() {
|
||||
defer sub.Unsubscribe()
|
||||
for {
|
||||
|
|
|
|||
Loading…
Reference in a new issue