plugeth/eth/downloader
Martin Holst Swende 3010f9fc75
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.
2020-09-02 11:01:46 +02:00
..
api.go core, eth: fix goimports for Go 1.11 2018-09-19 11:47:09 +03:00
downloader_test.go eth/downloader: change intial download size (#21366) 2020-09-02 11:01:46 +02:00
downloader.go eth/downloader: change intial download size (#21366) 2020-09-02 11:01:46 +02:00
events.go cmd,eth: 16400 Add an option to stop geth once in sync. WIP for light mode (#17321) 2019-01-30 08:40:36 +01:00
fakepeer.go core, eth, les, light: scope receipt functionality a bit cleaner 2019-04-15 13:42:26 +03:00
metrics.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03:00
modes.go eth/downloader: fixes data race between synchronize and other methods (#21201) 2020-06-30 19:43:29 +02:00
peer_test.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03:00
peer.go eth/downloader: remove eth62 (#21378) 2020-07-29 13:47:19 +03:00
queue_test.go eth/downloader: change intial download size (#21366) 2020-09-02 11:01:46 +02:00
queue.go eth/downloader: change intial download size (#21366) 2020-09-02 11:01:46 +02:00
resultstore.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03:00
statesync.go core, eth, les, trie: add a prefix to contract code (#21080) 2020-08-21 15:10:40 +03:00
testchain_test.go eth/downloader: change intial download size (#21366) 2020-09-02 11:01:46 +02:00
types.go eth: conform better to the golint standards (#16783) 2018-06-14 13:14:52 +03:00