-
Notifications
You must be signed in to change notification settings - Fork 245
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
feat(p2p_proto): remove redundant address fields #1672
Conversation
179c94b
to
507eb07
Compare
507eb07
to
b3709d7
Compare
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.
LGTM!
Co-authored-by: Krisztian Kovacs <[email protected]>
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.
👍
crates/p2p/Cargo.toml
Outdated
@@ -37,6 +37,7 @@ pathfinder-common = { path = "../common" } | |||
pathfinder-crypto = { path = "../crypto" } | |||
prost = "0.12.1" | |||
rand = { workspace = true } | |||
rayon = "1.8.0" |
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.
This should become a workspace dep I think.
7b71efd
to
112d488
Compare
I added those fields in anticipation of a spec update but it turns out I didn't notice these fields are redundant and can just be computed locally.
Edit: I updated the code to defer computing those addresses after all other parsing is done.