prysm-pulse/beacon-chain/sync
kasey 918129cf36
Replace statefeed Initialize (#12285)
* refactor initialization to blocking startup method

* require genesisSetter in blockchain, fix tests

* work-around gazelle weirdness

* fix dep gazelle ignores

* only call SetGenesis once

* fix typo

* validator test setup and fix to return right error

* move waitForChainStart to Start

* wire up sync Service.genesisWaiter

* fix p2p genesisWaiter plumbing

* remove extra clock type, integrate into genesis

and rename

* use time.Now when no Nower is specified

* remove unused ClockSetter

* simplify rpc context checking

* fix typo

* use clock everywhere in sync; [32]byte val root

* don't use DeepEqual to compare [32]byte and []byte

* don't use clock in init sync, not wired up yet

* use clock waiter in blockchain as well

* use cancelable contexts in tests with goroutines

* missed a reference to WithClockSetter

* Update beacon-chain/startup/genesis.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* Update beacon-chain/blockchain/service_test.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* more clear docs

* doc for NewClock

* move clock typedef to more logical file name

* adding documentation

* gaz

* fixes for capella

* reducing test raciness

* fix races in committee cache tests

* lint

* add tests on Duration slot math helper

* startup package test coverage

* fix bad merge

* set non-zero genesis time in tests that call Start

* happy deepsource, happy me-epsource

* replace Synced event with channel

* remove unused error

* remove accidental wip commit

* gaz!

* remove unused event constants

* remove sync statefeed subscription to fix deadlock

* remove state notifier

* fix build

---------

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
2023-05-03 04:34:01 +00:00
..
backfill Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
checkpoint Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
genesis Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
initial-sync Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
batch_verifier_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
batch_verifier.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
broadcast_bls_changes_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
broadcast_bls_changes.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
BUILD.bazel Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
context_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
context.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
deadlines.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
decode_pubsub_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
decode_pubsub.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
doc.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
error_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
error.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
fork_watcher_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
fork_watcher.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
fuzz_exports.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
log.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
metrics.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
options.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
pending_attestations_queue_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
pending_attestations_queue.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
pending_blocks_queue_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
pending_blocks_queue.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rate_limiter_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
rate_limiter.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
rpc_beacon_blocks_by_range_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_beacon_blocks_by_range.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_beacon_blocks_by_root_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_beacon_blocks_by_root.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_chunked_response_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
rpc_chunked_response.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_goodbye_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_goodbye.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_metadata_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_metadata.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_ping_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_ping.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_send_request_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_send_request.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_status_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_status.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
rpc_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
rpc.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
service_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
service.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
subscriber_beacon_aggregate_proof_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscriber_beacon_aggregate_proof.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscriber_beacon_attestation.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscriber_beacon_blocks_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscriber_beacon_blocks.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscriber_bls_to_execution_change.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscriber_handlers.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscriber_sync_committee_message.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscriber_sync_contribution_proof.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscriber_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
subscriber.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
subscription_topic_handler_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
subscription_topic_handler.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
sync_fuzz_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
sync_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
utils_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
utils.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
validate_aggregate_proof_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_aggregate_proof.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_attester_slashing_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_attester_slashing.go Fix Attester Slashing Validation In Gossip (#12295) 2023-04-17 15:35:38 +00:00
validate_beacon_attestation_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_beacon_attestation.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_beacon_blocks_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_beacon_blocks.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_bls_to_execution_change_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_bls_to_execution_change.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
validate_proposer_slashing_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_proposer_slashing.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
validate_sync_committee_message_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_sync_committee_message.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_sync_contribution_proof_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_sync_contribution_proof.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_voluntary_exit_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
validate_voluntary_exit.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00