mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-27 20:12:23 +00:00
p2p/discover: add missing lock when calling tab.handleAddNode (#29960)
This commit is contained in:
parent
1098d148a5
commit
349fcdd22d
1 changed files with 2 additions and 0 deletions
|
|
@ -452,7 +452,9 @@ func (tab *Table) loadSeedNodes() {
|
||||||
addr, _ := seed.UDPEndpoint()
|
addr, _ := seed.UDPEndpoint()
|
||||||
tab.log.Trace("Found seed node in database", "id", seed.ID(), "addr", addr, "age", age)
|
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.handleAddNode(addNodeOp{node: seed, isInbound: false})
|
||||||
|
tab.mutex.Unlock()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue