mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Update p2p/discover/table_reval.go
Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
parent
81e553f428
commit
0048a0f54d
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ func (tr *tableRevalidation) handleResponse(tab *Table, resp revalidationRespons
|
|||
n.isValidatedLive = true
|
||||
var endpointChanged bool
|
||||
if resp.newRecord != nil {
|
||||
endpointChanged := tab.bumpInBucket(b, resp.newRecord)
|
||||
endpointChanged = tab.bumpInBucket(b, resp.newRecord)
|
||||
if endpointChanged {
|
||||
// If the node changed its advertised endpoint, the updated ENR is not served
|
||||
// until it has been revalidated.
|
||||
|
|
|
|||
Loading…
Reference in a new issue