-
Notifications
You must be signed in to change notification settings - Fork 147
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
qdm12
wants to merge
3
commits into
qdm12/core/types/header-copy-hooks
Choose a base branch
from
qdm12/core/types/body-libevm
base: qdm12/core/types/header-copy-hooks
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
chore(core/types): Body
RLP codec hooks (5)
#760
qdm12
wants to merge
3
commits into
qdm12/core/types/header-copy-hooks
from
qdm12/core/types/body-libevm
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2be5a7b
to
87f5043
Compare
Body
libevm RLP codec hooks
qdm12
commented
Jan 21, 2025
2 tasks
da83d82
to
58f1171
Compare
9978144
to
7027a42
Compare
53eb228
to
d65a0d2
Compare
3593f92
to
1daa313
Compare
Body
libevm RLP codec hooksBody
RLP codec hooks (5)
da70431
to
3ff7dea
Compare
d65a0d2
to
787b67d
Compare
3ff7dea
to
783edc9
Compare
787b67d
to
9e52047
Compare
qdm12
commented
Feb 12, 2025
@@ -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{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs test
bb94d07
to
3c3ee20
Compare
qdm12
commented
Feb 12, 2025
&body.Transactions, | ||
&body.Uncles, | ||
&b.Version, | ||
&b.ExtData, |
There was a problem hiding this comment.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?