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

internal/ethapi: support retrieving header RLPs too #23670

Merged
merged 1 commit into from Oct 1, 2021

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Oct 1, 2021

We have a method to retrieve a block in RLP form (debug.GetBlockRlp), but sometimes we only need the header. Retrieving and managing the entire block RLP in that case can be unwieldy on mainnet tx counts. This PR introduces a GetHeaderRlp counterpart that only retrieves and serializes the header for use cases where that's enough.

@karalabe karalabe added this to the 1.10.10 milestone Oct 1, 2021
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe merged commit a47b8cf into ethereum:master Oct 1, 2021
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Oct 1, 2021
internal/ethapi: support retrieving header RLPs too
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.

None yet

2 participants