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

chore(core/types): Body RLP codec hooks (5) #760

Draft
wants to merge 3 commits into
base: qdm12/core/types/header-copy-hooks
Choose a base branch
from

Conversation

qdm12
Copy link
Collaborator

@qdm12 qdm12 commented Jan 21, 2025

Why this should be merged

How this works

Note: this branch is independent but it's based on #759 because the next PR #750 depend on both this PR and #759

How this was tested

Need to be documented?

Need to update RELEASES.md?

@qdm12 qdm12 force-pushed the qdm12/core/types/body-libevm branch from 2be5a7b to 87f5043 Compare January 21, 2025 17:26
@qdm12 qdm12 changed the title chore(core/types): body rlp hooks chore(core/types): Body libevm RLP codec hooks Jan 21, 2025
core/types/imports.go Outdated Show resolved Hide resolved
@qdm12 qdm12 changed the base branch from libevm-upstream-types to qdm12/core/types/header-copy-hooks January 22, 2025 09:40
@qdm12 qdm12 force-pushed the qdm12/core/types/header-copy-hooks branch 2 times, most recently from da83d82 to 58f1171 Compare January 22, 2025 09:56
@qdm12 qdm12 force-pushed the qdm12/core/types/body-libevm branch 2 times, most recently from 9978144 to 7027a42 Compare January 22, 2025 09:59
@qdm12 qdm12 force-pushed the qdm12/core/types/body-libevm branch 2 times, most recently from 53eb228 to d65a0d2 Compare January 24, 2025 10:48
@qdm12 qdm12 force-pushed the qdm12/core/types/header-copy-hooks branch 2 times, most recently from 3593f92 to 1daa313 Compare February 10, 2025 16:15
@qdm12 qdm12 changed the title chore(core/types): Body libevm RLP codec hooks chore(core/types): Body RLP codec hooks (5) Feb 10, 2025
@qdm12 qdm12 force-pushed the qdm12/core/types/header-copy-hooks branch 3 times, most recently from da70431 to 3ff7dea Compare February 12, 2025 12:57
@qdm12 qdm12 force-pushed the qdm12/core/types/body-libevm branch from d65a0d2 to 787b67d Compare February 12, 2025 13:03
@qdm12 qdm12 force-pushed the qdm12/core/types/header-copy-hooks branch from 3ff7dea to 783edc9 Compare February 12, 2025 15:06
@qdm12 qdm12 force-pushed the qdm12/core/types/body-libevm branch from 787b67d to 9e52047 Compare February 12, 2025 15:31
core/types/body_ext.go Show resolved Hide resolved
core/types/body_ext.go Show resolved Hide resolved
@@ -152,7 +143,15 @@ func (b *Block) EncodeRLP(w io.Writer) error {
// Body returns the non-header content of the block.
// Note the returned data is not an independent copy.
func (b *Block) Body() *Body {
return &Body{b.transactions, b.uncles, b.version, b.extdata}
body := &Body{
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Needs test

@qdm12 qdm12 force-pushed the qdm12/core/types/body-libevm branch from bb94d07 to 3c3ee20 Compare February 12, 2025 16:54
&body.Transactions,
&body.Uncles,
&b.Version,
&b.ExtData,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe a dumb remark, but note this doesn't use rlp.Nillable, I believe this is what we want correct?

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.

1 participant