-
Notifications
You must be signed in to change notification settings - Fork 4
Implement builder ssz flow #8
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
Conversation
common/src/lib.rs
Outdated
metadata: EmptyMetadata {}, | ||
data: body, | ||
}; | ||
tokio::task::spawn_blocking(move || { |
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.
Why are we spawning a new task to just convert to bytes?!
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.
I'm not sure why were spawning a new task, we were doing it in the JSON case in the existing build_response
function so I just kept it the same 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.
Removed this, i'm not sure why we had this in the first place.
c7aee9c
to
955a7d9
Compare
4f0b63d
to
a0eb6e8
Compare
a0eb6e8
to
ea8ee59
Compare
fb9f35e
to
4d3bbaa
Compare
4d3bbaa
to
8b2dcdc
Compare
Added support for ssz with register_validators as well and added tests. @eserilev can't seem to add you for review. PTAL. |
AI slop |
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.
Looks really good
Spec: ethereum/builder-specs#104
ForkVersionDecode
in LH. It was required so I could create the relevant axum extractor.JsonOrSszWithFork
extractor which can extract request body data that implsDeserializeOwned
+ForkVersionDecode
.build_response_with_headers
ForkVersionedResponse
& serializes to JSON