Skip to content

Commit

Permalink
Merge pull request #2064 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
p2p/discover: add missing lock when calling tab.handleAddNode
  • Loading branch information
ucwong authored Jun 18, 2024
2 parents 27f9b57 + abfc022 commit d34f9af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2p/discover/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit d34f9af

Please sign in to comment.