forked from cerc-io/plugeth
967d8de77a
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: Felix Lange <fjl@twurst.com> |
||
---|---|---|
.. | ||
downloader | ||
fetcher | ||
filters | ||
gasprice | ||
tracers | ||
api_backend.go | ||
api_test.go | ||
api_tracer.go | ||
api.go | ||
backend.go | ||
bloombits.go | ||
config.go | ||
discovery.go | ||
gen_config.go | ||
handler_test.go | ||
handler.go | ||
helper_test.go | ||
peer.go | ||
protocol_test.go | ||
protocol.go | ||
sync_test.go | ||
sync.go |