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

using DIFFICULTY field instead of block header to store the RNG number (EIP 4399) #111

Open
SurfingNerd opened this issue May 8, 2024 · 1 comment
Assignees

Comments

@SurfingNerd
Copy link
Collaborator

SurfingNerd commented May 8, 2024

EIP 4399 is about storing the Ethereum Random Number in the now useless DIFFICULTY field.
https://eips.ethereum.org/EIPS/eip-4399

Currently we write into the "Difficulty" field the block number, but we could use this space to store the RNG number.
That would save some space for blocks, and we would be more compatible with the ethereum standard.

would require a rewrite of the sync protocol:
#127

@SurfingNerd
Copy link
Collaborator Author

as for the tests done in Alpha 4, we faced Issues in the Sync of the node software.
currently the "Difficulty" field is used to guide the sync -
however, difficulty is in reality always the same than the block number, so we would not loose information with that change.

An improvement of the Sync process could be benificial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant