Closed andreclaro closed 5 months ago
eth_getBlockByHash
on block 0x0
returns: hash":"0x97b954c32af650ee0fb4fbc367cf99a8a9ee6aa3e7b4ecf2d72942790dce1904"
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"method":"eth_getBlockByHash",
"params":["0x0",false],
"id":1,
"jsonrpc":"2.0"
}'
{"jsonrpc":"2.0","id":1,"result":{"baseFeePerGas":"0x3b9aca00","difficulty":"0x0","extraData":"0x424544524f434b","gasLimit":"0x1c9c380","gasUsed":"0x0","hash":"0x97b954c32af650ee0fb4fbc367cf99a8a9ee6aa3e7b4ecf2d72942790dce1904","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x4200000000000000000000000000000000000011","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","number":"0x0","parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0x22b","stateRoot":"0x145c40755efdef6b837816ee78cefcfb251868a76acbc59038acaef59139f1f8","timestamp":"0x65da5e57","totalDifficulty":"0x0","transactions":[],"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","uncles":[],"withdrawals":[],"withdrawalsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"}}
When I start op-erigon I see the following message where genesis is "genesis=0x97b954c32af650ee0fb4fbc367cf99a8a9ee6aa3e7b4ecf2d72942790dce1904"
INFO[06-21|10:06:00.146] Initialised chain configuration config="{ChainID: 81457, Homestead: 0, DAO: <nil>, Tangerine Whistle: 0, Spurious Dragon: 0, Byzantium: 0, Constantinople: 0, Petersburg: 0, Istanbul: 0, Muir Glacier: 0, Berlin: 0, London: 0, Arrow Glacier: 0, Gray Glacier: 0, Terminal Total Difficulty: 0, Merge Netsplit: 0, Shanghai: 0, Cancun: 1716843599, Prague: <nil>, Osaka: <nil>, Engine: unknown, NoPruneContracts: map[]}{Bedrock: 0, Regolith: 0, Canyon: 0, Ecotone: 1716843599, Fjord: <nil>}" genesis=0x97b954c32af650ee0fb4fbc367cf99a8a9ee6aa3e7b4ecf2d72942790dce1904
When I initialize the erigon db, the genesis block hash is 0x97b954c32af650ee0fb4fbc367cf99a8a9ee6aa3e7b4ecf2d72942790dce1904
:
erigon --datadir=/var/lib/blast/data/execution init blast-mainnet/genesis.json
INFO[06-21|10:52:00.725] logging to file system log dir=/var/lib/blast/data/execution/logs file prefix=erigon log level=info json=false
INFO[06-21|10:52:01.023] Starting Erigon on Ethereum mainnet...
INFO[06-21|10:52:01.025] Maximum peer count ETH=100 total=100
INFO[06-21|10:52:01.025] starting HTTP APIs port=8545 APIs=eth,erigon,engine
INFO[06-21|10:52:01.025] Opening Database label=chaindata path=/var/lib/blast/data/execution/chaindata
INFO[06-21|10:52:01.027] [db] open label=chaindata sizeLimit=12TB pageSize=8192
INFO[06-21|10:52:01.047] Re-Opening DB in exclusive mode to apply migrations
INFO[06-21|10:52:01.048] [db] open label=chaindata sizeLimit=12TB pageSize=8192
INFO[06-21|10:52:01.049] Apply migration name=db_schema_version5
INFO[06-21|10:52:01.064] Applied migration name=db_schema_version5
INFO[06-21|10:52:01.064] Apply migration name=txs_begin_end
INFO[06-21|10:52:01.066] Applied migration name=txs_begin_end
INFO[06-21|10:52:01.066] Apply migration name=txs_v3
INFO[06-21|10:52:01.068] Applied migration name=txs_v3
INFO[06-21|10:52:01.068] Apply migration name=prohibit_new_downloads_lock
INFO[06-21|10:52:01.070] Applied migration name=prohibit_new_downloads_lock
INFO[06-21|10:52:01.070] Apply migration name=prohibit_new_downloads_lock2
INFO[06-21|10:52:01.072] Applied migration name=prohibit_new_downloads_lock2
INFO[06-21|10:52:01.073] Updated DB schema to version=6.1.0
INFO[06-21|10:52:01.075] [db] open label=chaindata sizeLimit=12TB pageSize=8192
INFO[06-21|10:52:01.226] Writing custom genesis block hash=0x97b954c32af650ee0fb4fbc367cf99a8a9ee6aa3e7b4ecf2d72942790dce1904
INFO[06-21|10:52:01.237] Successfully wrote genesis state hash=0x97b954c32af650ee0fb4fbc367cf99a8a9ee6aa3e7b4ecf2d72942790dce1904
Genesis.json and rollup.json are available at https://github.com/blast-io/deployment/tree/master/mainnet
However, genesis hash block is 0xb689b35ef29d0bec5816938e0e52683c7257d2e325420ea69b739a2be4754b89
, right? š¤
source: https://blastscan.io/block/0
Cc: @ImTe @mininny
Hi @andreclaro, it seems like blast.io is maintaining their own fork of optimism. Do you know whether blast.io is op-stack compliant? If they modified internal optimism code like state transition functions, the root hash from the genesis file might differ. I just tested with op-geth. and it also returns a different genesis hash block.
Hi @andreclaro, it seems like blast.io is maintaining their own fork of optimism. Do you know whether blast.io is op-stack compliant? If they modified internal optimism code like state transition functions, the root hash from the genesis file might differ. I just tested with op-geth. and it also returns a different genesis hash block.
Yes, that's correct! Blast uses a fork of op-stack (op-geth and op-node) and the source code is available at https://github.com/blast-io/blast
https://github.com/blast-io/deployment has the network configuration (genesis and rollup files).
Documentation:
@andreclaro Thanks for the info! Like you said, it seems like blast is not op-stack compliant. And because it has different chain logic than Optimism, op-erigon won't be able to support it unfortunately. š
@andreclaro I'll close this issue for now as there isn't much we can do here. If you need help supporting other chains, feel free to let us know :)
Description
Trying to test op-erigon on blast mainnet network, but getting the following errors on op-node:
Logs
op-node logs:
op-erigon logs:
CLI
op-node cli:
op-erigon cli: