prysm-pulse/beacon-chain/sync/initial-sync
Potuz f8b4d8c57a
Deprecate store in blockchain pkg (#10903)
* Deprecate store WIP

* fix spectests build

* mock right interface

* sync tests build

* more tests builds

* blockchain tests

- TestFinalizedCheckpt_GenesisRootOk
- TestCurrentJustifiedCheckpt_CanRetrieve
- TestJustifiedCheckpt_GenesisRootOk
- TestHeadRoot_CanRetrieve
- TestHeadRoot_UseDB
- TestService_ProcessAttestationsAndUpdateHead
- TestService_VerifyWeakSubjectivityRoot
- TestVerifyFinalizedConsistency_InconsistentRoot_ProtoArray
- TestVerifyFinalizedConsistency_InconsistentRoot_DoublyLinkedTree
- TestVerifyFinalizedConsistency_Ok
- TestStore_OnBlock_ProtoArray
- TestStore_OnBlock_DoublyLinkedTree
- TestStore_OnBlockBatch_ProtoArray
- TestStore_OnBlockBatch_DoublyLinkedTree
- TestStore_OnBlockBatch_NotifyNewPayload
- TestCachedPreState_CanGetFromStateSummary_ProtoArray
- TestCachedPreState_CanGetFromStateSummary_DoublyLinkedTree

* more blockchain tests

- TestStore_OnBlockBatch_PruneOK_Protoarray
- TestFillForkChoiceMissingBlocks_CanSave_ProtoArray
- TestFillForkChoiceMissingBlocks_CanSave_DoublyLinkedTree
- TestFillForkChoiceMissingBlocks_RootsMatch_Protoarray
- TestFillForkChoiceMissingBlocks_RootsMatch_DoublyLinkedTree
- TestFillForkChoiceMissingBlocks_FilterFinalized_ProtoArray
- TestFillForkChoiceMissingBlocks_FilterFinalized_DoublyLinkedTree
- TestVerifyBlkDescendant
- Test_verifyBlkFinalizedSlot_invalidBlock
- TestChainService_SaveHeadNoDB

* update best justified from genesis

* deal with nil head on saveHead

* initialize prev justified checkpoint

* update finalization correctly

* update finalization logic

* update finalization logic

* track the wall clock on forkchoice spectests

* export copies of checkpoints from blockchain package

* do not use forkchoice's head on HeadRoot

* Remove debug remain

Co-authored-by: terencechain <terence@prysmaticlabs.com>

* terence's review

* add forkchoice types deps

* wtf

* debugging

* init-sync: update justified and finalized checkpoints on db

* call updateFinalized instead of only DB

* remove debug symbols

* safe copy headroot

Co-authored-by: terencechain <terence@prysmaticlabs.com>
2022-06-25 03:57:52 +00:00
..
testing Remove libfuzzer / afl based builds in favor of go 1.18 fuzz testing (#10065) 2022-01-20 04:51:02 +00:00
blocks_fetcher_peers_test.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
blocks_fetcher_peers.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
blocks_fetcher_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
blocks_fetcher_utils_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
blocks_fetcher_utils.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
blocks_fetcher.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
blocks_queue_test.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
blocks_queue_utils.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
blocks_queue.go Refactor: Continue reducing cognitive complexity (#10862) 2022-06-15 18:34:59 +00:00
BUILD.bazel Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
fsm_benchmark_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
fsm_test.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
fsm.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
initial_sync_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
log.go First pass: single peer initial sync (#3363) 2019-08-30 15:15:40 -05:00
round_robin_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
round_robin.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
service_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
service.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00