ethereum-optimism / op-geth

GNU Lesser General Public License v3.0
255 stars 653 forks source link

Skip genesis state check for transitioned networks #245

Closed trianglesphere closed 4 months ago

trianglesphere commented 4 months ago

Description

On restarts, nodes that had completed snap sync without using a datadir on transitioned networks would re-commit the genesis state. This would set the local block back to the genesis block and wipe away the state after snap sync. Because op-geth is not able to execute the STF pre-bedrock, it is ok to skip storing this data.

Tests

Tested on op-goerli.