go-ethereum/cmd
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
..
abidump signer/core: move API JSON types to separate package (#23275) 2021-07-29 16:06:44 +02:00
abigen cmd/abigen: clarify abigen alias flag usage (#21875) 2020-12-12 17:36:32 +01:00
bootnode les: switch to new discv5 (#21940) 2021-01-26 21:41:35 +01:00
checkpoint-admin use go-ethereum for better forked-bor release 2020-11-13 09:21:48 +05:30
clef V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
cli migrate cli to internal package (#301) 2022-01-19 12:10:20 +01:00
clidoc Prepare Bor package for testing (#416) 2022-06-08 16:39:30 +03:00
devp2p V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
ethkey V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
evm V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
faucet merged geth v1.10.10 2021-11-22 19:04:07 +05:30
geth V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
p2psim use go-ethereum for better forked-bor release 2020-11-13 09:21:48 +05:30
puppeth V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
rlpdump V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
utils RFC35/Common Ancestor: Modifying the forkchoice rule (#425) 2022-07-15 10:37:35 +05:30