go-ethereum/eth/downloader
Péter Szilágyi 452a12aa79
eth/downloader: move the pivot in beacon sync mode too (#26453)
In legacy (pre-merge) sync mode, headers were contiguously downloaded from the network and when no more headers were available, we checked every few seconds whether there are 64 new blocks to move the pivot.

In beacon (post-merge) sync mode, we don't need to check for new skeleton headers non stop, since those re delivered one by one by the engine API. The missing code snippet from the header fetcher was to actually look at the latest head and move the pivot if it was more than 2*64-8 away. This PR adds the missing movement logic.
2023-01-10 12:16:54 -05:00
..
api.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
beaconsync.go eth/downloader: move the pivot in beacon sync mode too (#26453) 2023-01-10 12:16:54 -05:00
downloader.go eth/downloader: fix some typos (#26396) 2023-01-03 11:03:44 +02:00
downloader_test.go all: cleanup tests (#25641) 2022-09-07 20:21:59 +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
fetchers.go eth: pre-process downloader responses on the peer reader thread 2021-12-01 20:18:12 +02:00
fetchers_concurrent.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
fetchers_concurrent_bodies.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
fetchers_concurrent_headers.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
fetchers_concurrent_receipts.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
metrics.go eth: request id dispatcher and direct req/reply APIs (#23576) 2021-11-26 13:26:03 +02:00
modes.go eth: request id dispatcher and direct req/reply APIs (#23576) 2021-11-26 13:26:03 +02:00
peer.go eth, les: unlock downloader peerSet if there's an error (#25546) 2022-08-19 09:02:47 +03:00
queue.go core, eth: for types with accurate size calcs, return uint64, not float (#26046) 2022-10-26 15:23:07 +03:00
queue_test.go all: cleanup the APIs for initializing genesis (#25473) 2022-08-09 12:44:39 +03:00
resultstore.go all: fix docstrings 2022-10-04 09:18:02 +02:00
skeleton.go eth/downloader: create repro testcase for beacon header loss 2023-01-09 12:12:25 +02:00
skeleton_test.go eth/downloader: create repro testcase for beacon header loss 2023-01-09 12:12:25 +02:00
statesync.go eth: request id dispatcher and direct req/reply APIs (#23576) 2021-11-26 13:26:03 +02:00
testchain_test.go all: cleanup tests (#25641) 2022-09-07 20:21:59 +02:00