go-ethereum/eth/downloader
Daniel Liu 8e6d98e121
eth/downloader: change intial download size #21366 (#1045)
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.

Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-06-20 16:32:47 +08:00
..
api.go rpc: remove deprecated method Notifier.Closed #29162 (#1022) 2025-05-06 09:44:20 +08:00
downloader.go eth/downloader: change intial download size #21366 (#1045) 2025-06-20 16:32:47 +08:00
downloader_test.go eth/downloader: change intial download size #21366 (#1045) 2025-06-20 16:32:47 +08:00
events.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
metrics.go eth/downloader: refactor downloader + queue #21263 (#1041) 2025-06-17 13:01:06 +08:00
modes.go eth/downloader: fixes data race between synchronize and other methods (#21201) 2025-02-26 15:06:08 +08:00
peer.go eth/downloader: refactor downloader + queue #21263 (#1041) 2025-06-17 13:01:06 +08:00
peer_test.go eth/downloader: refactor downloader + queue #21263 (#1041) 2025-06-17 13:01:06 +08:00
queue.go eth/downloader: change intial download size #21366 (#1045) 2025-06-20 16:32:47 +08:00
queue_test.go eth/downloader: change intial download size #21366 (#1045) 2025-06-20 16:32:47 +08:00
resultstore.go eth/downloader: refactor downloader + queue #21263 (#1041) 2025-06-17 13:01:06 +08:00
statesync.go eth/downloader: save the correct delivery time for state sync #21427 (#1044) 2025-06-19 16:34:30 +08:00
testchain_test.go eth/downloader: change intial download size #21366 (#1045) 2025-06-20 16:32:47 +08:00
types.go new EVM Upgrade 2021-09-21 16:53:46 +05:30