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 libevm RLP codec hooks #760

Draft
wants to merge 1 commit 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
// - withdrawals Withdrawals
}

func (b *BodyExtra) EncodeRLP(eth *ethtypes.Body, writer io.Writer) error {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add test for this and DecodeRLP

@@ -26,3 +29,12 @@ func WithHeaderExtras(h *Header, extra *HeaderExtra) *Header {
extras.Header.Set(h, extra)
return h
}

func GetBodyExtra(b *Body) *BodyExtra {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add test for this and WithBodyExtra

@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 from 7027a42 to 53eb228 Compare January 24, 2025 09:37
@qdm12 qdm12 force-pushed the qdm12/core/types/body-libevm branch from 53eb228 to d65a0d2 Compare January 24, 2025 10:48
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