Skip to content

core/types: reject blob tx sidecar in JSON#34989

Open
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:blobtx
Open

core/types: reject blob tx sidecar in JSON#34989
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:blobtx

Conversation

@cuiweixie

@cuiweixie cuiweixie commented May 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reject blob transaction sidecar fields (version, blobs, commitments, proofs) during transaction JSON unmarshalling.
  • Keep the JSON decoder from importing blob sidecar payloads while preserving existing transaction JSON decoding behavior.

Test plan

  • go test ./core/types -run TestBlobTxJSONRejectsSidecar
  • go test ./core/types

@cuiweixie cuiweixie requested a review from rjl493456442 as a code owner May 17, 2026 15:24
@fjl

fjl commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

The decoding of blob tx sidecar is intentionally left out of core/types JSON unmarshaling. The unmarshaling code is only used by ethclient and some other places, but we don't want blob sidecar to enter there.

I guess it'd be good to change the decoder so it rejects the sidecar fields explicitly.

@fjl fjl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

^^

@cuiweixie cuiweixie changed the title core/types: encode blob tx version decode blobtx sidecar core/types: encode blob tx sidecar version in JSON Jun 9, 2026
@cuiweixie cuiweixie changed the title core/types: encode blob tx sidecar version in JSON [WIP]core/types: encode blob tx sidecar version in JSON Jun 9, 2026
Reject blob sidecar fields during transaction JSON unmarshalling because this decoder is not meant to import blob payloads.
@cuiweixie cuiweixie changed the title [WIP]core/types: encode blob tx sidecar version in JSON core/types: reject blob tx sidecar in JSON Jun 9, 2026
@cuiweixie cuiweixie requested a review from fjl June 9, 2026 15:45
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