ethereum / ethereum/execution-apis

Rename mixHash to prevRandao

Open
#328 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Io
Stars
1.1k
Forks
530
Avg merge
5d 8h
Merged PRs (30d)
9

Description

## Issue
[EIP-4399](https://eips.ethereum.org/EIPS/eip-4399) replaces `mixHash` block header value with beacon chain RANDAO mix to expose it inside of the EVM, this EIP suggests that the field should be further renamed to `prevRandao`, thus, there is a desire to do the renaming in JSON RPC API schema.

This change would involve:
* Renaming itself
* Tests update
* EL clients update to conform the new schema

The other problem which doesn't seem to have a perfect solution is serving old PoW blocks with updated schema. One of potential solutions would be to make `mixHash` and `prevRandao` optional in the schema and filled by clients according to the context. The downside of this solution is additional engineering and testing complexity.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.