-
Notifications
You must be signed in to change notification settings - Fork 252
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: manual blob deserialize #696
Conversation
088ee53
to
c0358b1
Compare
crates/eips/src/eip4844/sidecar.rs
Outdated
@@ -21,6 +21,7 @@ use alloc::vec::Vec; | |||
)] | |||
pub struct BlobTransactionSidecar { | |||
/// The blob data. | |||
#[cfg_attr(feature = "serde", serde(deserialize_with = "deserialize_blobs"))] |
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.
plus debug_assertions
this is not a problem with opt-level > 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.
unclear what you're referring to 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.
cfg_attr(all(feature,debug_assertions)
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.
ah gotcha,
Co-authored-by: DaniPopes <[email protected]>
* feat: manual blob deserialize * use debug_assertions * Update crates/eips/src/eip4844/sidecar.rs Co-authored-by: DaniPopes <[email protected]> --------- Co-authored-by: DaniPopes <[email protected]>
should prevent stackoverflows on sidecar deserde, ref https://github.com/foundry-rs/foundry/actions/runs/8968170602/job/24627087079?pr=7868
I assume this could be improved further by implementing a custom visitor, but will followup separately