You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying a chain to an L1 with Pectra activated, the L1 block hash emitted by op-deployer inspect rollup is incorrectly generated. For example, a chain starting at Sepolia block 7086425 has the hash 0xcd22aea81b468f56e781f099f2583575ec01819e87a01a18797bc8e460c7a2bb in the state file when the actual block hash is 0xe8b39adb6388ce828f4598aa95b32befe384da784539d9be53a2162a9e26afed
This is likely because we use Geth's ethclient library to fetch the start block header. ethclient returns a types.Header struct, which calculates the hash on-the-fly based on the consensus rules of the included Geth version. Instead, we need to perform a raw RPC call to eth_getHeaderByNumber and store the block number/hash directly in state. We can also use this as an opportunity to clean up the start by only storing the relevant fields in the state, i.e. hash and number.
This will need to be cherry-picked to the 0.0.x, 0.2.x, and develop lineages.
Reported by: Alchemy
The text was updated successfully, but these errors were encountered:
When deploying a chain to an L1 with Pectra activated, the L1 block hash emitted by
op-deployer inspect rollup
is incorrectly generated. For example, a chain starting at Sepolia block 7086425 has the hash0xcd22aea81b468f56e781f099f2583575ec01819e87a01a18797bc8e460c7a2bb
in the state file when the actual block hash is0xe8b39adb6388ce828f4598aa95b32befe384da784539d9be53a2162a9e26afed
This is likely because we use Geth's
ethclient
library to fetch the start block header.ethclient
returns atypes.Header
struct, which calculates the hash on-the-fly based on the consensus rules of the included Geth version. Instead, we need to perform a raw RPC call toeth_getHeaderByNumber
and store the block number/hash directly in state. We can also use this as an opportunity to clean up the start by only storing the relevant fields in the state, i.e.hash
andnumber
.This will need to be cherry-picked to the
0.0.x
,0.2.x
, anddevelop
lineages.Reported by: Alchemy
The text was updated successfully, but these errors were encountered: