mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-04 01:54:28 +00:00
12de9c3f65
* eth/downloaded: fixed datarace between synchronize and Progress There was a race condition between `downloader.synchronize()` and `Progress` `syncWithPeer` `fetchHeight` `findAncestors` and `processHeaders` This PR changes the behavior of the downloader a bit. Previously the functions `Progress` `syncWithPeer` `fetchHeight` `findAncestors` and `processHeaders` read the syncMode anew within their loops. Now they read the syncMode at the start of their function and don't change it during their runtime. * eth/downloaded: comment * eth/downloader: added comment # Conflicts: # eth/downloader/downloader.go |
||
---|---|---|
.. | ||
api.go | ||
downloader_stagedsync_test.go | ||
downloader_stagedsync.go | ||
downloader_test.go | ||
downloader.go | ||
events.go | ||
fakepeer.go | ||
metrics.go | ||
modes.go | ||
peer.go | ||
queue.go | ||
testchain_test.go | ||
types.go |