good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 967d8de7 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub
Browse files

eth/downloader: fix peer idleness tracking when restarting state sync (#21260)


This fixes two issues with state sync restarts:

When sync restarts with a new root, some peers can have in-flight requests.
Since all peers with active requests were marked idle when exiting sync,
the new sync would schedule more requests for those peers. When the
response for the earlier request arrived, the new sync would reject it and
mark the peer idle again, rendering the peer useless until it disconnected.

The other issue was that peers would not be marked idle when they had
delivered a response, but the response hadn't been processed before
restarting the state sync. This also made the peer useless because it
would be permanently marked busy.

Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
parent 7a556abe
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment