go-ethereum/internal
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
..
build V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
cli RFC35/Common Ancestor: Modifying the forkchoice rule (#425) 2022-07-15 10:37:35 +05:30
cmdtest cmd/evm: add tests for evm t8n (#23507) 2021-09-02 09:22:43 +02:00
debug merged geth v1.10.10 2021-11-22 19:04:07 +05:30
ethapi Reciept e2e test (#431) 2022-07-14 19:28:56 +03:00
flags V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
guide all: add support for EIP-2718, EIP-2930 transactions (#21502) 2021-02-25 15:26:57 +01:00
jsre V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
shutdowncheck V0.2.16 candidate (#373) 2022-05-06 12:31:48 +02:00
syncx core: improve shutdown synchronization in BlockChain (#22853) 2021-10-07 15:47:50 +02:00
testlog Update Bor to geth-v1.9.16 (#78) 2020-07-24 19:01:41 +05:30
utesting cmd/devp2p, internal/utesting: implement TAP output (#21760) 2020-11-04 15:02:58 +01:00
web3ext Merge develop branch into v0.3.0-dev (#430) 2022-06-15 09:02:01 +03:00