prysm-pulse/beacon-chain/sync
Preston Van Loon 07e7e030d9
Update PubSub and include topic filter (#7496)
* Update pubsub and fix topicIDs

* WIP filter

* Add suggested code from @bidlocode

* add tests and fix bugs

* more tests

* Wait until state initialized to accept pubsub filtering

* rename for clarity and clarify comment

* fix test builds

* Autofix issues in 2 files

Resolved issues in the following files via DeepSource Autofix:
1. beacon-chain/p2p/pubsub_filter.go
2. beacon-chain/p2p/pubsub_filter_test.go

* @nisdas pr feedback

* pr feedback and fuzz fix

* Update beacon-chain/p2p/pubsub_filter.go

* Must have protocol suffix

* Must have protocol suffix

* gofmt

* rm test, fix panic

* Fix tests

* Add isInitialized check

* Add a few more tests for better coverage

* cache fork digest, make pubsub filter part of the p2p service

* rename service

* gofmt

* Add comment

* fix

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-16 07:05:40 +00:00
..
initial-sync More feature flag deletions (#7533) 2020-10-14 23:28:49 +00:00
BUILD.bazel More feature flag deletions (#7533) 2020-10-14 23:28:49 +00:00
deadlines.go Validate RPC Topics Before Sending Requests (#6558) 2020-07-13 09:20:53 +08:00
decode_pubsub_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
decode_pubsub.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
doc.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
error_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
error.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
fuzz_exports.go Add beacon state unmarshal fuzzer, afl support (#6625) 2020-09-14 11:42:08 -07:00
log.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
metrics.go More feature flag deletions (#7533) 2020-10-14 23:28:49 +00:00
pending_attestations_queue_test.go Skip duplicated aggregated attestation in pending queue (#7326) 2020-09-24 15:47:03 +00:00
pending_attestations_queue.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
pending_blocks_queue_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
pending_blocks_queue.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rate_limiter_test.go QSP 29: Add Rate Limiter For All Topics (#6606) 2020-07-17 08:58:51 +00:00
rate_limiter.go Handle Zero Root Requests (#7151) 2020-09-01 19:09:09 +00:00
rpc_beacon_blocks_by_range_test.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
rpc_beacon_blocks_by_range.go Validate Beacon Block By Range Requests Better (#7132) 2020-08-28 13:50:38 +00:00
rpc_beacon_blocks_by_root_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc_beacon_blocks_by_root.go Update error usage patterns to go1.13+ (#7529) 2020-10-14 17:39:52 +00:00
rpc_chunked_response.go QSP 32: Add Appropriate Stream Deadlines for RPC Requests (#6583) 2020-07-13 19:40:12 +00:00
rpc_goodbye_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc_goodbye.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc_metadata_test.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
rpc_metadata.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
rpc_ping_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc_ping.go Update error usage patterns to go1.13+ (#7529) 2020-10-14 17:39:52 +00:00
rpc_status_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc_status.go Update error usage patterns to go1.13+ (#7529) 2020-10-14 17:39:52 +00:00
rpc_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc.go Replace Roughtime With Timeutils Across Prysm (#7301) 2020-09-22 19:49:58 +08:00
service_test.go check chainstart (#7494) 2020-10-15 22:03:48 +08:00
service.go check chainstart (#7494) 2020-10-15 22:03:48 +08:00
subscriber_beacon_aggregate_proof_test.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
subscriber_beacon_aggregate_proof.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
subscriber_beacon_attestation.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
subscriber_beacon_blocks_test.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
subscriber_beacon_blocks.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
subscriber_handlers.go Renames receiver in sync service (#6348) 2020-06-22 20:37:48 +00:00
subscriber_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
subscriber.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
sync_test.go Refactors redundant global variables from sync (#5860) 2020-05-15 08:53:19 +00:00
utils_test.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
utils.go Batch Block Roots Requesting (#7027) 2020-08-20 04:50:14 +00:00
validate_aggregate_proof_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_aggregate_proof.go More feature flags removal (#7526) 2020-10-14 16:18:40 +00:00
validate_attester_slashing_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_attester_slashing.go Combines func params of the same type (#7500) 2020-10-12 15:43:19 +00:00
validate_beacon_attestation_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_beacon_attestation.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_beacon_blocks_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_beacon_blocks.go Combines func params of the same type (#7500) 2020-10-12 15:43:19 +00:00
validate_proposer_slashing_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_proposer_slashing.go Remove processSlots from slashing check (#7357) 2020-09-29 13:22:55 +08:00
validate_voluntary_exit_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
validate_voluntary_exit.go Use state slot to verify exit signature (#7155) 2020-09-02 00:57:52 +00:00