fix: reject bids with invalid prev_randao during gossip validation - #9533
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces validation for the prev_randao field in execution payload bids, adding a new INVALID_PREV_RANDAO error code and type to handle failures. However, the implementation calls state.getRandaoMix(...) directly, which will result in a runtime TypeError because IBeaconStateView does not expose this method. It is recommended to use the getRandaoMix helper function from @lodestar/state-transition instead.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Performance Report✔️ no performance regression detected Full benchmark results
|
|
🎉 This PR is included in v1.44.0 🎉 |
see ethereum/consensus-specs#5360