mirror of https://github.com/ethereum/go-ethereum
p2p/discover: schedule revalidation also when all nodes are excluded (#30239)
## Issue If `nextTime` has passed, but all nodes are excluded, `get` would return `nil` and `run` would therefore not invoke `schedule`. Then, we schedule a timer for the past, as neither `nextTime` value has been updated. This creates a busy loop, as the timer immediately returns. ## Fix With this PR, revalidation will be also rescheduled when all nodes are excluded. --------- Co-authored-by: lightclient <lightclient@protonmail.com>pull/30248/head
parent
6e33dbf96a
commit
de6d597679
Loading…
Reference in new issue