Skip to content

Commit

Permalink
p2p/discover: add missing lock when calling tab.handleAddNode (ethere…
Browse files Browse the repository at this point in the history
…um#29960) (ethereum#1295)

Co-authored-by: Gealber Morales <48373523+Gealber@users.noreply.github.com>
  • Loading branch information
pratikspatil024 and Gealber authored Jul 26, 2024
1 parent 164933d commit 577a8a0
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 @@ -458,7 +458,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 577a8a0

Please sign in to comment.