DMDcoin / diamond-node

bit.diamonds node software for network version 4
GNU General Public License v3.0
0 stars 3 forks source link

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

Open SurfingNerd opened 1 month ago

SurfingNerd commented 1 month ago

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.