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: add StaticFileBlockWithdrawals to db-model #13894

Merged
merged 1 commit into from
Jan 21, 2025
Merged

feat: add StaticFileBlockWithdrawals to db-model #13894

merged 1 commit into from
Jan 21, 2025

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Jan 20, 2025

Adds a type that will be used to de/serialize withdrawals from/to StaticFile::BlockMeta. This is used instead of StoredBlockWithdrawals because:

  • pre merge block withdrawals are None, which are different than []
  • static file columns/rows always require some kinda of value
  • primitive Option cannot be used as a Compact row value, and needs a wrapper struct. (eg. CompactU256, CompactU64)

@joshieDo
Copy link
Collaborator Author

compact-codec test failure can be ignored since we're adding a new Compact type with this PR

If it happened during CI, ignore IF it's a new proposed type that `main` branch does not have.`

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

@mattsse
Copy link
Collaborator

mattsse commented Jan 21, 2025

ci unrelated because this introduces new test vec

@joshieDo joshieDo added this pull request to the merge queue Jan 21, 2025
Merged via the queue into main with commit 0a5de2f Jan 21, 2025
41 of 43 checks passed
@joshieDo joshieDo deleted the joshie/sfw branch January 21, 2025 13:38
refcell pushed a commit to ethereum-optimism/op-reth that referenced this pull request Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-static-files Related to static files C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants