protolambda / eth2-testnet-genesis

Create a genesis state for an Eth2 testnet
MIT License
44 stars 24 forks source link

Execution-layer Block has missing blob-gas-used field #39

Open cleondz opened 1 month ago

cleondz commented 1 month ago

Hi guys thanks for this project ,

I'm using this tool to generate a genesis for a local network using geth + lighthouse and I'm not able to generate the validator accounts from my configuration.

Version: v0.32.3-master-4b3498

I'm running the next command :

eth2-testnet-genesis deneb   --config ./zero-network/consensus/testnet/config.yaml   --mnemonics ./mnemonic.yaml   --tranches-dir ./consensus/tranches   --state-output ./consensus/genesis.ssz   --preset-phase0 mainnet   --preset-altair mainnet   --preset-bellatrix mainnet   --preset-capella mainnet   --preset-deneb mainnet   --eth1-config ./genesis.json 

This is the output:

zrnt version: v0.32.3
Using CL MIN_GENESIS_TIME for genesis timestamp
execution-layer Block has missing blob-gas-used field

What could be the issue here? I have the field blobGasUsed in the genesis file :

{
  ... 
  "coinbase": "0x0000000000000000000000000000000000000000",
  "difficulty": "0x20000",
  "extraData": "",
  "gasLimit": "0x2fefd8",
  "nonce": "0x441fe44",
  "timestamp": "0x63A1E047",
  "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "number":"0x0",
  "gasUsed":"0x0",
  "blobGasUsed":"0x0"
}

Thanks in advance!!

protolambda commented 3 weeks ago

Is the dencun fork timestamp set in the genesis.json? Without it the underlying geth code does not construct the Block with blob-gas-used field: https://github.com/ethereum/go-ethereum/blob/941ae33d7e0b36afc2f8551884f555d963de7c6b/core/genesis.go#L457