prysm-pulse/beacon-chain/forkchoice/protoarray
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
..
BUILD.bazel Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
doc.go Clean up fork choice (#10226) 2022-02-12 03:33:46 +00:00
errors.go Change forkchoice API (#10774) 2022-06-05 17:48:21 +00:00
ffg_update_test.go Consolidate ExecutionPayloadHeader Protobuf definitions (#10917) 2022-06-22 13:08:06 +02:00
helpers_test.go remove equivocating votes from forkchoice (#10597) 2022-05-02 19:19:03 +00:00
helpers.go remove equivocating votes from forkchoice (#10597) 2022-05-02 19:19:03 +00:00
metrics.go Metrics tracking EE VALID/SYNCING/INVALID response counter (#10504) 2022-04-12 09:51:13 +00:00
no_vote_test.go Forkchoice duplicate store (#10840) 2022-06-16 18:21:40 +00:00
node_test.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
node.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
on_tick_test.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
on_tick.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
optimistic_sync_test.go Change forkchoice API (#10774) 2022-06-05 17:48:21 +00:00
optimistic_sync.go Change forkchoice API (#10774) 2022-06-05 17:48:21 +00:00
proposer_boost_test.go Apply Proposer Boost from forkchoice (#10893) 2022-06-22 13:56:07 +00:00
proposer_boost.go Apply Proposer Boost from forkchoice (#10893) 2022-06-22 13:56:07 +00:00
store_test.go Ignore nil node when saving orphaned atts (#10930) 2022-06-24 18:07:31 +00:00
store.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
types.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
unrealized_justification_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
unrealized_justification.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
vote_test.go prune within forkchoice (#10896) 2022-06-17 12:53:17 -03:00