prysm-pulse/beacon-chain/p2p/encoder
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
..
BUILD.bazel Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
doc.go Resolve Miscellaneous Prysm TODOs (#3465) 2019-09-16 15:45:03 -05:00
network_encoding.go QSP-13 Only Allow Snappy P2P Encoding (#6415) 2020-07-03 11:24:30 +08:00
snappy_test.go Applies assertion funcs to p2p tests (#6597) 2020-07-14 16:51:39 +00:00
ssz_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
ssz.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
varint_test.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
varint.go QSP18: Add Varint Header Validation (#6577) 2020-07-13 14:02:03 -05:00