prysm-pulse/beacon-chain/p2p
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
..
encoder Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
peers Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
testing Enable misspell linter & fix findings (#12272) 2023-04-14 10:03:11 +00:00
types Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
addr_factory_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
addr_factory.go Enforce log.WithError(err) static analysis and fix all violations (#11163) 2022-08-05 10:52:02 +00:00
broadcaster_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
broadcaster.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
config.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
connection_gater_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
connection_gater.go Fix a race condition during initialization (#11444) (#11698) 2022-11-29 18:24:50 +00:00
dial_relay_node_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
dial_relay_node.go Update libp2p to support go 1.19 (#11309) 2022-10-07 15:24:51 +08:00
discovery_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
discovery.go Enable misspell linter & fix findings (#12272) 2023-04-14 10:03:11 +00:00
doc.go Change Eth2 Repository Names (#9425) 2021-08-19 13:00:57 -05:00
fork_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
fork_watcher.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
fork.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
gossip_scoring_params_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
gossip_scoring_params.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
gossip_topic_mappings_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
gossip_topic_mappings.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
handshake.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
info.go Update libp2p to support go 1.19 (#11309) 2022-10-07 15:24:51 +08:00
interfaces.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
iterator.go Refactor Subnet Search (#8048) 2020-12-11 18:40:56 -08:00
log.go Update libp2p to support go 1.19 (#11309) 2022-10-07 15:24:51 +08:00
message_id_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
message_id.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
monitoring.go Add Pubsub Metrics Tracer (#12178) 2023-03-24 12:36:10 +08:00
options_test.go Enable Static Peer ID (#12220) 2023-04-01 00:00:11 +00:00
options.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
parameter_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
pubsub_filter_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
pubsub_filter.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
pubsub_fuzz_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
pubsub_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
pubsub_tracer.go Add Pubsub Metrics Tracer (#12178) 2023-03-24 12:36:10 +08:00
pubsub.go Add Pubsub Metrics Tracer (#12178) 2023-03-24 12:36:10 +08:00
rpc_topic_mappings_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
rpc_topic_mappings.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
sender_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
sender.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +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
subnets_test.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00
subnets.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
topics.go Add Gossip Handler For BLS To Execution Changes (#11690) 2022-11-26 11:07:05 -08:00
utils_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
utils.go Enable misspell linter & fix findings (#12272) 2023-04-14 10:03:11 +00:00
watch_peers.go Update libp2p to support go 1.19 (#11309) 2022-10-07 15:24:51 +08:00