p2p/discover: add missing lock when calling tab.handleAddNode (#29960)

pull/29964/head
Gealber Morales 6 months ago committed by GitHub
parent 1098d148a5
commit 349fcdd22d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      p2p/discover/table.go

@ -452,7 +452,9 @@ func (tab *Table) loadSeedNodes() {
addr, _ := seed.UDPEndpoint()
tab.log.Trace("Found seed node in database", "id", seed.ID(), "addr", addr, "age", age)
}
tab.mutex.Lock()
tab.handleAddNode(addNodeOp{node: seed, isInbound: false})
tab.mutex.Unlock()
}
}

Loading…
Cancel
Save