Skip to content
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

Merged
merged 3 commits into from
May 6, 2024
Merged

feat: manual blob deserialize #696

merged 3 commits into from
May 6, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented May 6, 2024

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

@mattsse mattsse force-pushed the matt/manual-blob-deserialize branch from 088ee53 to c0358b1 Compare May 6, 2024 12:31
@@ -21,6 +21,7 @@ use alloc::vec::Vec;
)]
pub struct BlobTransactionSidecar {
/// The blob data.
#[cfg_attr(feature = "serde", serde(deserialize_with = "deserialize_blobs"))]
Copy link
Member

@DaniPopes DaniPopes May 6, 2024

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

Copy link
Member Author

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

Copy link
Member

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)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah gotcha,

@mattsse mattsse requested a review from DaniPopes May 6, 2024 15:03
@mattsse mattsse merged commit 05af0de into main May 6, 2024
24 checks passed
@mattsse mattsse deleted the matt/manual-blob-deserialize branch May 6, 2024 15:27
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants