prysm-pulse/beacon-chain/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
..
backfill Move BeaconBlockNil Checker Function to Consensus-Types/Wrapper Package (#10731) 2022-05-20 23:29:16 +00:00
checkpoint Ignore genesis state url and checkpoint sync flags after first run of prysm (#10881) 2022-06-14 23:23:25 +00:00
genesis Ignore genesis state url and checkpoint sync flags after first run of prysm (#10881) 2022-06-14 23:23:25 +00:00
initial-sync Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
batch_verifier_test.go Rename To Signature Batch (#9926) 2021-11-23 17:57:06 +01:00
batch_verifier.go Update Batch Verification Routine (#10127) 2022-05-04 04:47:53 +00:00
BUILD.bazel More selective on marking block as bad (#10681) 2022-05-20 17:05:39 +00:00
context_test.go Update libp2p to latest release (#10423) 2022-04-19 12:53:58 +00:00
context.go Update libp2p to latest release (#10423) 2022-04-19 12:53:58 +00:00
deadlines.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
decode_pubsub_test.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
decode_pubsub.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
doc.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
error_test.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
error.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
fork_watcher_test.go Config registry (#10683) 2022-05-20 07:16:53 +00:00
fork_watcher.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
fuzz_exports.go Use go:build lines and remove obsolete +build lines (#10704) 2022-06-14 11:47:27 +00:00
log.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
metrics.go Update Batch Verification Routine (#10127) 2022-05-04 04:47:53 +00:00
options.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
pending_attestations_queue_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
pending_attestations_queue.go Refactor: Reduce cognitive complexity for 5 out of top 10 functions in code base (#10854) 2022-06-18 10:14:43 +00:00
pending_blocks_queue_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
pending_blocks_queue.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
rate_limiter_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
rate_limiter.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
rpc_beacon_blocks_by_range_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
rpc_beacon_blocks_by_range.go Deprecate Step Parameter from our Block By Range Requests (#10914) 2022-06-23 21:48:28 +00:00
rpc_beacon_blocks_by_root_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
rpc_beacon_blocks_by_root.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
rpc_chunked_response_test.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
rpc_chunked_response.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
rpc_goodbye_test.go Config registry (#10683) 2022-05-20 07:16:53 +00:00
rpc_goodbye.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
rpc_metadata_test.go Config registry (#10683) 2022-05-20 07:16:53 +00:00
rpc_metadata.go Move Consensus Type Wrappers Into Consensus Types Package (#10598) 2022-05-02 15:43:40 +00:00
rpc_ping_test.go Move Consensus Type Wrappers Into Consensus Types Package (#10598) 2022-05-02 15:43:40 +00:00
rpc_ping.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
rpc_send_request_test.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
rpc_send_request.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
rpc_status_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
rpc_status.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
rpc_test.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
rpc.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
service_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
service.go Ignore subset aggregates (#10674) 2022-05-25 05:40:06 +00:00
subscriber_beacon_aggregate_proof_test.go Use signature length from fieldparams (#10019) 2021-12-15 15:14:30 -05:00
subscriber_beacon_aggregate_proof.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
subscriber_beacon_attestation.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
subscriber_beacon_blocks_test.go Fix error.Is ordering (#10685) 2022-05-12 22:43:34 +00:00
subscriber_beacon_blocks.go Graduate Prune Canonical Attestations Feature (#10623) 2022-06-15 09:05:19 +00:00
subscriber_handlers.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
subscriber_sync_committee_message.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
subscriber_sync_contribution_proof.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
subscriber_test.go Config registry (#10683) 2022-05-20 07:16:53 +00:00
subscriber.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
subscription_topic_handler_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
subscription_topic_handler.go Various clean up before v2 (#9672) 2021-09-24 17:42:16 +00:00
sync_fuzz_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
sync_test.go Replace ioutil with io and os (#10541) 2022-04-18 20:42:07 +00:00
utils_test.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
utils.go Rename Block Package in Consensus-Types to Interfaces (#10605) 2022-05-02 14:32:37 -04:00
validate_aggregate_proof_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
validate_aggregate_proof.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
validate_attester_slashing_test.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
validate_attester_slashing.go Insert over-the-wire slashing to forkchoice (#10615) 2022-05-07 15:56:34 +00:00
validate_beacon_attestation_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
validate_beacon_attestation.go Ignore subset aggregates (#10674) 2022-05-25 05:40:06 +00:00
validate_beacon_blocks_test.go Some test improvements (#10928) 2022-06-24 17:22:39 +00:00
validate_beacon_blocks.go Deprecate store in blockchain pkg (#10903) 2022-06-25 03:57:52 +00:00
validate_proposer_slashing_test.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
validate_proposer_slashing.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
validate_sync_committee_message_test.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
validate_sync_committee_message.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
validate_sync_contribution_proof_test.go Ignore subset aggregates (#10674) 2022-05-25 05:40:06 +00:00
validate_sync_contribution_proof.go Ignore subset aggregates (#10674) 2022-05-25 05:40:06 +00:00
validate_voluntary_exit_test.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_voluntary_exit.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00