mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/discover: fix crash in move
This commit is contained in:
parent
b44673fa29
commit
822b05926f
1 changed files with 3 additions and 4 deletions
|
|
@ -132,11 +132,10 @@ func (tr *tableRevalidation) handleResponse(tab *Table, resp revalidationRespons
|
|||
if !resp.didRespond {
|
||||
// Revalidation failed.
|
||||
n.livenessChecks /= 3
|
||||
if n.livenessChecks == 0 || resp.isNewNode {
|
||||
if n.livenessChecks <= 0 {
|
||||
tab.deleteInBucket(b, n.ID())
|
||||
}
|
||||
// Move to fast queue.
|
||||
if !resp.isNewNode {
|
||||
} else if !resp.isNewNode {
|
||||
// Move to fast queue.
|
||||
tr.moveToList(&tr.fast, &tr.slow, n, now, &tab.rand)
|
||||
}
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue