Update p2p/discover/table_reval.go

Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
Felix Lange 2024-04-24 16:20:40 +02:00 committed by GitHub
parent 81e553f428
commit 0048a0f54d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,7 +148,7 @@ func (tr *tableRevalidation) handleResponse(tab *Table, resp revalidationRespons
n.isValidatedLive = true n.isValidatedLive = true
var endpointChanged bool var endpointChanged bool
if resp.newRecord != nil { if resp.newRecord != nil {
endpointChanged := tab.bumpInBucket(b, resp.newRecord) endpointChanged = tab.bumpInBucket(b, resp.newRecord)
if endpointChanged { if endpointChanged {
// If the node changed its advertised endpoint, the updated ENR is not served // If the node changed its advertised endpoint, the updated ENR is not served
// until it has been revalidated. // until it has been revalidated.