go-ethereum/eth/downloader
Manav Darji c44693706a
RFC35/Common Ancestor: Modifying the forkchoice rule (#425)
* initial

* update

* fix: add validator to NewBlockchain function calls

* handle past chain reorg

* fix: only check with last checkpoint

* rm logs

* add: handle future chain import case

* fix: handle single block case

* add unit tests for past and future chain

* modularise forker tests

* minor fixes

* add: overlapping chain test case, minor fixes

* minor fixes

* add: isolated unit test for IsValidChain

* add more test case for IsValidChain

* fix: use index for header time

* add: fetch last N checkpoints in first run

* fix: change checkpoint count to int64

* fix: handle edge case

* fix: handle no checkpoint case separately

* fix: consider offset for future chain calculation

* re-write test case for split chain

* fix: typo

* add: split chain properties test

* separate reorg checks, validate chain before inserting

* fix: handle err incase of invalid chain

* fix: use error from whitelist service

* split chain property tests

* remove duplicate test cases

* cleanup

* clean up

* fix linters

* fix: fetch checkpoint count bug, add tests

* fix more linters

* fix: handle nil chain validator in downloader

* fix: mock bor tests

Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-07-15 10:37:35 +05:30
..
whitelist RFC35/Common Ancestor: Modifying the forkchoice rule (#425) 2022-07-15 10:37:35 +05:30
api.go all: remove redundant conversions and import names (#21903) 2020-11-25 21:00:23 +01:00
beaconsync.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
downloader.go RFC35/Common Ancestor: Modifying the forkchoice rule (#425) 2022-07-15 10:37:35 +05:30
downloader_test.go RFC35/Common Ancestor: Modifying the forkchoice rule (#425) 2022-07-15 10:37:35 +05:30
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 V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
fetchers_concurrent.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
fetchers_concurrent_bodies.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
fetchers_concurrent_headers.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
fetchers_concurrent_receipts.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
metrics.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
modes.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
peer.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
queue.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
queue_test.go Merge develop branch into v0.3.0-dev (#430) 2022-06-15 09:02:01 +03:00
resultstore.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03:00
skeleton.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
skeleton_test.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
statesync.go V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
testchain_test.go RFC35/Common Ancestor: Modifying the forkchoice rule (#425) 2022-07-15 10:37:35 +05:30