go-ethereum/internal/cli/server
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
..
chains Reciept e2e test (#431) 2022-07-14 19:28:56 +03:00
pprof migrate cli to internal package (#301) 2022-01-19 12:10:20 +01:00
proto internal/cli: add block tracing (#397) 2022-06-06 14:54:05 +05:30
testdata Merge pull request #405 from cffls/whitelist 2022-05-23 09:18:48 -07:00
command.go Prepare Bor package for testing (#416) 2022-06-08 16:39:30 +03:00
config.go Change diverged flags back to Geth's convention (POS-602) (#451) 2022-07-14 22:36:18 +05:30
config_legacy.go migrate cli to internal package (#301) 2022-01-19 12:10:20 +01:00
config_legacy_test.go migrate cli to internal package (#301) 2022-01-19 12:10:20 +01:00
config_test.go Change diverged flags back to Geth's convention (POS-602) (#451) 2022-07-14 22:36:18 +05:30
flags.go Change diverged flags back to Geth's convention (POS-602) (#451) 2022-07-14 22:36:18 +05:30
helper.go Reciept e2e test (#431) 2022-07-14 19:28:56 +03:00
server.go RFC35/Common Ancestor: Modifying the forkchoice rule (#425) 2022-07-15 10:37:35 +05:30
server_test.go Prepare Bor package for testing (#416) 2022-06-08 16:39:30 +03:00
service.go internal/cli: update grpc/protobuf dependency (#449) 2022-07-11 19:09:49 +03:00
service_test.go migrate cli to internal package (#301) 2022-01-19 12:10:20 +01:00