• M
    eth/downloader: change intial download size (#21366) · 3010f9fc
    Martin Holst Swende 提交于
    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.
    3010f9fc
downloader_test.go 65.0 KB