erigon-pulse/eth/downloader
Martin Holst Swende ea8fe080b3 eth/downloader: change intial download size (#21366)
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.

# Conflicts:
#	eth/downloader/downloader.go
#	eth/downloader/downloader_test.go
#	eth/downloader/testchain_test.go
2020-09-11 16:22:10 +02:00
..
api.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
downloader_stagedsync_test.go Initialize Staged Sync with stages. (#1033) 2020-09-02 19:11:41 +01:00
downloader_stagedsync.go Prefetch block bodies (#1013) 2020-08-30 18:34:40 +01:00
downloader_test.go eth/downloader: change intial download size (#21366) 2020-09-11 16:22:10 +02:00
downloader.go eth/downloader: change intial download size (#21366) 2020-09-11 16:22:10 +02:00
events.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
fakepeer.go cmd/tester initiates staged sync, and unwind (but not reorg) (#758) 2020-07-19 09:11:53 +01:00
metrics.go eth/downloader: refactor downloader + queue (#21263) 2020-08-07 14:23:49 +02:00
modes.go eth/downloader: fixes data race between synchronize and other methods (#21201) 2020-08-07 11:51:38 +02:00
peer_test.go eth/downloader: refactor downloader + queue (#21263) 2020-08-07 14:23:49 +02:00
peer.go eth/downloader: remove eth62 (#21378) 2020-08-12 12:42:36 +02:00
queue_test.go eth/downloader: change intial download size (#21366) 2020-09-11 16:22:10 +02:00
queue.go eth/downloader: change intial download size (#21366) 2020-09-11 16:22:10 +02:00
resultstore.go geth 1.9.18 post-rebase fixups 2020-08-08 17:33:35 +02:00
testchain_test.go geth 1.9.18 post-rebase fixups 2020-08-08 17:33:35 +02:00
types.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00