Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIP-4399: Supplant DIFFICULTY opcode with PREVRANDAO #57

Open
OlivierBBB opened this issue Jan 22, 2025 · 0 comments
Open

EIP-4399: Supplant DIFFICULTY opcode with PREVRANDAO #57

OlivierBBB opened this issue Jan 22, 2025 · 0 comments
Labels
london to pectra v1 London to pectra v1 paris EIP's for the paris hardfork will implement For those EIP's that will be implemented on Linea

Comments

@OlivierBBB
Copy link
Collaborator

OlivierBBB commented Jan 22, 2025

EIP-4399: Supplant DIFFICULTY opcode with PREVRANDAO

Impact

The PREVRANDAO value will be in the block header. As such its value should be included into the BLOCKDATA module thus replacing the DIFFICULTY field.

Notes

The PREVRANDAO opcode will be made part of the BTC instruction family.
Renaming the DIFFICULTY and potentially adjusting its gas cost should suffice.

Besu requirement

Besu confirmed value will be available in block header.

For upgrades, refer to https://github.com/hyperledger/besu/blob/main/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolSpecs.java

Test vectors

  • stackOverflow
  • OOGX with nonzero PREVRANDAO
@OlivierBBB OlivierBBB added london to pectra v1 London to pectra v1 paris EIP's for the paris hardfork labels Jan 22, 2025
@OlivierBBB OlivierBBB changed the title EIP-4399 EIP-4399: Supplant DIFFICULTY opcode with PREVRANDAO Jan 22, 2025
@OlivierBBB OlivierBBB added the will implement For those EIP's that will be implemented on Linea label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
london to pectra v1 London to pectra v1 paris EIP's for the paris hardfork will implement For those EIP's that will be implemented on Linea
Projects
None yet
Development

No branches or pull requests

1 participant