forked from cerc-io/plugeth
3010f9fc75
This changes how the downloader works, a little bit. Previously, when block sync started, we immediately started filling up to 8192 blocks. Usually this is fine, blocks are small in the early numbers. The threshold then is lowered as we measure the size of the blocks that are filled. However, if the node is shut down and restarts syncing while we're in a heavy segment, that might be bad. This PR introduces a more conservative initial threshold of 2K blocks instead. |
||
---|---|---|
.. | ||
api.go | ||
downloader_test.go | ||
downloader.go | ||
events.go | ||
fakepeer.go | ||
metrics.go | ||
modes.go | ||
peer_test.go | ||
peer.go | ||
queue_test.go | ||
queue.go | ||
resultstore.go | ||
statesync.go | ||
testchain_test.go | ||
types.go |