prysm-pulse/beacon-chain/blockchain
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
..
testing Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
BUILD.bazel Add, use and test VerifyWeakSubjectivityRoot (#7344) 2020-09-26 08:04:07 +00:00
chain_info_norace_test.go Applies assertion funcs to blockchain tests (#6605) 2020-07-16 12:11:39 +00:00
chain_info_test.go Verify interface compliance using typed nil instead of dereferencing and conversion (#7489) 2020-10-10 00:36:48 +00:00
chain_info.go Refactor head info for better usages for lock (#7432) 2020-10-06 10:57:18 +00:00
checkpoint_info_cache_test.go Update fastssz: Attempt 2 (#7115) 2020-08-27 18:13:32 +00:00
checkpoint_info_cache.go Implement checkpt info cache (#7070) 2020-08-21 08:50:21 -07:00
head_test.go Add justified block insertion to forkchoice when missed (#7520) 2020-10-13 18:26:43 +00:00
head.go Add justified block insertion to forkchoice when missed (#7520) 2020-10-13 18:26:43 +00:00
info_test.go Fix ineffectual assignments (#7403) 2020-10-01 18:53:36 +00:00
info.go Refactor head info for better usages for lock (#7432) 2020-10-06 10:57:18 +00:00
init_sync_process_block.go Move skip-regen-historical-states to deprecated (#6512) 2020-07-08 00:15:45 +00:00
log.go Unnecessary Slice-to-Slice Conversion analyzer (#7321) 2020-09-23 16:14:34 +00:00
metrics.go Combines func params of the same type (#7500) 2020-10-12 15:43:19 +00:00
process_attestation_helpers.go Combines func params of the same type (#7500) 2020-10-12 15:43:19 +00:00
process_attestation_test.go Fixes incorrect checks for errors in several tests (#7392) 2020-10-01 14:38:53 +00:00
process_attestation.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
process_block_helpers.go Combines func params of the same type (#7500) 2020-10-12 15:43:19 +00:00
process_block_test.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
process_block.go Remove inital sync don't verify att sig flag (#7517) 2020-10-13 06:08:21 +00:00
receive_attestation_test.go Prevent far future target epoch for attestation state (#7169) 2020-09-03 13:18:38 -05:00
receive_attestation.go More feature flag deletions (#7533) 2020-10-14 23:28:49 +00:00
receive_block_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
receive_block.go Refactor head info for better usages for lock (#7432) 2020-10-06 10:57:18 +00:00
service_norace_test.go Applies assertion funcs to blockchain tests (#6605) 2020-07-16 12:11:39 +00:00
service_test.go Verify interface compliance using typed nil instead of dereferencing and conversion (#7489) 2020-10-10 00:36:48 +00:00
service.go Combines func params of the same type (#7500) 2020-10-12 15:43:19 +00:00
weak_subjectivity_checks_test.go Add, use and test VerifyWeakSubjectivityRoot (#7344) 2020-09-26 08:04:07 +00:00
weak_subjectivity_checks.go Add, use and test VerifyWeakSubjectivityRoot (#7344) 2020-09-26 08:04:07 +00:00