go-ethereum/internal/cli
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
..
flagset Change diverged flags back to Geth's convention (POS-602) (#451) 2022-07-14 22:36:18 +05:30
server RFC35/Common Ancestor: Modifying the forkchoice rule (#425) 2022-07-15 10:37:35 +05:30
account.go Lint internal/cli 2022-05-26 11:55:44 -07:00
account_import.go Lint internal/cli 2022-05-26 11:55:44 -07:00
account_list.go Lint internal/cli 2022-05-26 11:55:44 -07:00
account_new.go Lint internal/cli 2022-05-26 11:55:44 -07:00
attach.go Enable prealloc check and improve address comparison 2022-05-26 11:55:44 -07:00
bootnode.go Reciept e2e test (#431) 2022-07-14 19:28:56 +03:00
bor_fingerprint.go Lint internal/cli 2022-05-26 11:55:44 -07:00
chain.go Lint internal/cli 2022-05-26 11:55:44 -07:00
chain_sethead.go Lint internal/cli 2022-05-26 11:55:44 -07:00
chain_watch.go Lint internal/cli 2022-05-26 11:55:44 -07:00
command.go internal/cli: add block tracing (#397) 2022-06-06 14:54:05 +05:30
debug.go internal/cli: update grpc/protobuf dependency (#449) 2022-07-11 19:09:49 +03:00
debug_block.go internal/cli: add block tracing (#397) 2022-06-06 14:54:05 +05:30
debug_pprof.go internal/cli: update grpc/protobuf dependency (#449) 2022-07-11 19:09:49 +03:00
debug_test.go Reciept e2e test (#431) 2022-07-14 19:28:56 +03:00
markdown.go Automatically generate markdown pages from bor CLI 2022-05-09 17:10:36 +02:00
markdown_test.go Reciept e2e test (#431) 2022-07-14 19:28:56 +03:00
peers.go Lint internal/cli 2022-05-26 11:55:44 -07:00
peers_add.go Lint internal/cli 2022-05-26 11:55:44 -07:00
peers_list.go Lint internal/cli 2022-05-26 11:55:44 -07:00
peers_remove.go Lint internal/cli 2022-05-26 11:55:44 -07:00
peers_status.go Lint internal/cli 2022-05-26 11:55:44 -07:00
status.go internal/cli: update grpc/protobuf dependency (#449) 2022-07-11 19:09:49 +03:00
version.go Lint internal/cli 2022-05-26 11:55:44 -07:00