Files
reth/crates
yongkangc 86e2f13c23 fix(rpc): return -32602 for PayloadAttributes structure validation errors
Per the Engine API spec, structure validation errors for PayloadAttributes
(e.g., missing withdrawals post-Shanghai, missing parentBeaconBlockRoot
post-Cancun) should return -32602 "Invalid params", not -38003.

This aligns with the spec requirement that parameter structure mismatches
return -32602, while -38003 is reserved for semantic validation errors
that occur after structure validation passes.

Fixes #8732
2026-01-08 04:00:51 +00:00
..