Skip to content

feat: types.{Header,BlockBody}Hooks.PostRPCMarshal methods#285

Merged
ARR4N merged 4 commits into
mainfrom
arr4n/rpc-hooks-for-types
Jun 1, 2026
Merged

feat: types.{Header,BlockBody}Hooks.PostRPCMarshal methods#285
ARR4N merged 4 commits into
mainfrom
arr4n/rpc-hooks-for-types

Conversation

@ARR4N

@ARR4N ARR4N commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Why this should be merged

RPC support of types.Header and types.Block extra payloads.

How this works

Adds PostRPCMarshal() methods to types.HeaderHooks and types.BlockBodyHooks, which are called by the respect ethapi functions to allow for mutation of the output before being returned by the RPC endpoint.

How this was tested

Integration test of new hooks with internal/ethapi/BlockChainAPI.

Comment thread core/types/block.libevm.go Outdated
@ARR4N ARR4N force-pushed the arr4n/rpc-hooks-for-types branch from 53dc6d0 to a6c1a92 Compare June 1, 2026 18:25
@ARR4N ARR4N requested a review from StephenButtolph June 1, 2026 18:27
@ARR4N ARR4N marked this pull request as ready for review June 1, 2026 18:27
@ARR4N ARR4N enabled auto-merge (squash) June 1, 2026 18:27

@StephenButtolph StephenButtolph left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@ARR4N ARR4N merged commit ae9c2ce into main Jun 1, 2026
13 checks passed
@ARR4N ARR4N deleted the arr4n/rpc-hooks-for-types branch June 1, 2026 19:35
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.

2 participants