go-ethereum/eth
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
..
bft fix: improve timeout message log (#996) 2025-04-29 01:48:56 -07:00
downloader eth/downloader: change intial download size #21366 (#1045) 2025-06-20 16:32:47 +08:00
ethconfig all: disable recording preimage of trie keys #21402 (#1054) 2025-06-17 13:10:47 +08:00
fetcher eth/fetcher, trie: unit test reliability fixes #23020 #23415 (#1070) 2025-06-17 13:21:18 +08:00
filters rpc: remove deprecated method Notifier.Closed #29162 (#1022) 2025-05-06 09:44:20 +08:00
gasprice eth/gasprice: sanity check ratio values (#31270) 2025-03-14 08:04:02 +08:00
hooks record total minted into smart contract (#1026) 2025-06-16 02:31:33 -07:00
tracers all: not copy loop var for golang v1.22 (#1020) 2025-04-29 17:27:36 +08:00
util feat: add TIPEpochHalving, better style 2025-03-25 22:16:35 +08:00
api.go cmd, core, eth, trie: add trie read caching layer (#18087) (#946) 2025-04-16 17:27:43 +08:00
api_backend.go internal/ethapi: disable sending of non eip155 replay protected tx #22339 (#971) 2025-04-25 11:55:52 +08:00
api_test.go all: new empty trie with types.EmptyRootHash instead of null (#27230) 2025-02-07 13:04:45 +08:00
api_tracer.go all: disable recording preimage of trie keys #21402 (#1054) 2025-06-17 13:10:47 +08:00
backend.go all: disable recording preimage of trie keys #21402 (#1054) 2025-06-17 13:10:47 +08:00
backend_test.go Move consensus hooks to its own package 2021-10-10 16:04:32 +11:00
bloombits.go core, eth, params: make indexer configurable (#17188) 2025-03-10 15:41:53 +08:00
handler.go all: not copy loop var for golang v1.22 (#1020) 2025-04-29 17:27:36 +08:00
handler_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
helper_test.go core: move genesis alloc types to core/types (#29003) 2025-01-24 16:54:12 +08:00
metrics.go metrics, cmd/XDC: change init-process of metrics (#30814) 2024-12-13 14:00:14 +08:00
peer.go all: use github.com/deckarep/golang-set/v2 (generic set) (#26159) 2025-01-24 16:54:11 +08:00
protocol.go core: remove unused error from TxPool.Pending (#23720) 2024-11-01 11:36:53 +08:00
protocol_test.go eth: set networkID to chainId by default (#28250) 2025-02-17 09:17:31 +08:00
state_accessor.go all: disable recording preimage of trie keys #21402 (#1054) 2025-06-17 13:10:47 +08:00
sync.go core: remove unused error from TxPool.Pending (#23720) 2024-11-01 11:36:53 +08:00
sync_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00