go-ethereum/eth
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
..
downloader eth/downloader: change intial download size (#21366) 2020-09-02 11:01:46 +02:00
fetcher core, eth, les, trie: add a prefix to contract code (#21080) 2020-08-21 15:10:40 +03:00
filters all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
gasprice eth/gasprice: lighter gas price oracle for light client (#20409) 2020-07-03 14:50:35 +02:00
tracers eth/tracers: revert reason in call_tracer + error for failed internal calls (#21387) 2020-08-27 11:33:45 +02:00
api.go eth: updated comments (#21490) 2020-08-26 13:20:12 +03:00
api_backend.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
api_test.go eth: add debug_accountRange API (#19645) 2020-03-31 12:08:44 +02:00
api_tracer.go eth: updated comments (#21490) 2020-08-26 13:20:12 +03:00
backend.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
bloombits.go eth: updated comments (#21490) 2020-08-26 13:20:12 +03:00
config.go cmd/utils: grant snapshot cache to trie if disabled (#21416) 2020-08-06 15:28:31 +03:00
discovery.go cmd/geth: enable DNS discovery by default (#20660) 2020-02-13 15:38:30 +02:00
gen_config.go cmd, core, eth, light, trie: dump clean cache periodically (#20391) 2020-07-28 16:30:31 +03:00
handler.go eth: utilize sync bloom for getNodeData (#21445) 2020-08-24 11:32:12 +03:00
handler_test.go eth: increase timeout in TestBroadcastBlock (#21299) 2020-07-08 11:50:26 +02:00
helper_test.go cmd, core, eth: background transaction indexing (#20302) 2020-05-11 18:58:43 +03:00
peer.go eth: use maxQueuedTxAnns for to limit the number of transactions announced (#21419) 2020-08-06 15:19:00 +03:00
protocol.go eth: rework tx fetcher to use O(1) ops + manage network requests 2020-02-13 15:27:15 +02:00
protocol_test.go cmd, core, eth: background transaction indexing (#20302) 2020-05-11 18:58:43 +03:00
sync.go core: define and test chain rewind corner cases (#21409) 2020-08-20 13:01:24 +03:00
sync_test.go eth: improve shutdown synchronization (#20695) 2020-03-27 15:03:20 +02:00