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

display genesis #31

Open
q9f opened this issue Sep 28, 2023 · 2 comments
Open

display genesis #31

q9f opened this issue Sep 28, 2023 · 2 comments

Comments

@q9f
Copy link

q9f commented Sep 28, 2023

the dora explorer does a good job displaying the consensus slot with the execution payload

https://dora-holesky.pk910.de/slot/2

however, it does not do it for genesis. the structure should be the same though?

https://dora-holesky.pk910.de/slot/0

@pk910
Copy link
Member

pk910 commented Oct 16, 2023

Heya @q9f,

Sorry for late reaction, I've actually been looking into it a few times, but didn't find a proper solution for it yet.

The problem is basically that CL clients do not seem to be returning the correct execution payload for the genesis block:

$ curl -s http://10.16.97.4:5052/eth/v2/beacon/blocks/genesis | jq ".data.message.body.execution_payload"
{
  "parent_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "fee_recipient": "0x0000000000000000000000000000000000000000",
  "state_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "receipts_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "logs_bloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "prev_randao": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "block_number": "0",
  "gas_limit": "0",
  "gas_used": "0",
  "timestamp": "0",
  "extra_data": "0x",
  "base_fee_per_gas": "0",
  "block_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "transactions": [],
  "withdrawals": []
}

@q9f
Copy link
Author

q9f commented Oct 17, 2023

Interesting. My first reaction is to hardcode the genesis payload to be always EL block number #0 but then realizing that is not always the case.

My second thought is that might be interesting to implement in the CL clients but then again - most genesis won't have a payload at all - so Dora might be actually correct not showing anything.

Question remaining:

  • if we "merge from genesis" as we did at Holesky, should the CL genesis be linked to the EL genesis payload? (probably a question for the core devs)
  • would it be sensible to have a separate "EL blocks" view on Dora? (similar to what Etherscan/Beaconcha.in does)

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

No branches or pull requests

2 participants