Skip to content

core/rawdb: don't decode the full block body in ReadTransaction #32027

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

Merged
merged 8 commits into from
Jun 19, 2025

Conversation

omerfirmak
Copy link
Contributor

@omerfirmak omerfirmak commented Jun 13, 2025

Reading a single transaction out of a block shouldn't need decoding the entire body

@omerfirmak omerfirmak requested a review from rjl493456442 as a code owner June 13, 2025 12:01
@fjl fjl changed the title rawdb: don't decode the full block body in ReadTransaction core/rawdb: don't decode the full block body in ReadTransaction Jun 13, 2025
for txnIterator.Next() && txnIterator.Err() == nil {
txnRLP := txnIterator.Value()

// Figure out if this a legacy transaction or not
Copy link
Contributor

Choose a reason for hiding this comment

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

Please explain it better in the comment.

@rjl493456442 rjl493456442 self-assigned this Jun 17, 2025
rjl493456442
rjl493456442 previously approved these changes Jun 18, 2025
@rjl493456442 rjl493456442 added this to the 1.15.12 milestone Jun 19, 2025
@rjl493456442 rjl493456442 merged commit 4997a24 into ethereum:master Jun 19, 2025
3 of 4 checks passed
calbera pushed a commit to berachain/bera-geth that referenced this pull request Jun 19, 2025
…reum#32027)

Reading a single transaction out of a block shouldn't need decoding the
entire body

---------

Co-authored-by: Felix Lange <[email protected]>
Co-authored-by: Gary Rong <[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.

3 participants