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

Compatible chiado genesis #5

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Compatible chiado genesis #5

merged 2 commits into from
Jul 24, 2024

Conversation

dapplion
Copy link
Member

@dapplion dapplion commented Jul 12, 2024

To test run

python generate_chiado_genesis.py && ./run_reth.sh

From https://rpc.chiadochain.net the genesis block is

{
  "author": "0x0000000000000000000000000000000000000000",
  "difficulty": "0x20000",
  "extraData": "0x",
  "gasLimit": "0x989680",
  "gasUsed": "0x0",
  "hash": "0xada44fd8d2ecab8b08f256af07ad3e777f17fb434f8f8e678b312f576212ba9a",
  "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "miner": "0x0000000000000000000000000000000000000000",
  "number": "0x0",
  "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "size": "0x21a",
  "stateRoot": "0x9ec3eaf4e6188dfbdd6ade76eaa88289b57c63c9a2cde8d35291d5a29e143d31",
  "step": 0,
  "totalDifficulty": "0x20000",
  "timestamp": "0x0",
  "baseFeePerGas": "0x3b9aca00",
  "transactions": [],
  "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
  "uncles": []
}

with

curl -X POST https://rpc.chiadochain.net -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x0", true],"id":1}' | jq '.result'

As of 24e4f7d I get

2024-07-12T10:02:11.892026Z  INFO reth::cli: Database opened
2024-07-12T10:02:11.916902Z DEBUG reth::cli: Initializing genesis chain=chiado genesis=0xa7931c99fd2b7b5e323a2fda8a2dd607cea04f03835c3f29bfe7c057c8b5672e

@dapplion
Copy link
Member Author

Screenshot 2024-07-13 at 15 31 45

Genesis block diff as of commit 24e4f7d

@dapplion dapplion merged commit e155f3d into master Jul 24, 2024
5 checks passed
@dapplion dapplion deleted the chiado-genesis branch July 24, 2024 11:55
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

Successfully merging this pull request may close these issues.

1 participant