-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Custom SSZ for P2P Types #7436
Conversation
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
@@ -26,8 +26,6 @@ ssz_gen_marshal( | |||
], | |||
objs = [ | |||
"BeaconBlocksByRangeRequest", | |||
"BeaconBlocksByRootRequest", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete BeaconBlocksByRootRequest
in messages.proto
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its been deleted form before, this is just cleanup
beacon-chain/p2p/types/BUILD.bazel
Outdated
name = "go_default_library", | ||
srcs = ["types.go"], | ||
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/p2p/types", | ||
visibility = ["//visibility:public"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the visibility be public here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch ! that is why the CI was complaining lol
… into useCustomSSZ
Conflicts 😭 PTAL @nisdas |
What type of PR is this?
Feature Addition And Bug Fix
What does this PR do? Why is it needed?
go-ssz
for non composite type whichled our node to be susceptible to any go-ssz specific bugs. This PR instead implements custom ssz for our
required p2p types, so that they do not need to use go-ssz anymore
Which issues(s) does this PR fix?
Fixes #7425
Other notes for review