Skip to content

Standard L2 Genesis: Prevent start block misconfiguration #12579

@maurelian

Description

@maurelian

From @tynes comment:

Noticed something here: dcdf2b7/op-node/rollup/types.go#L43

The op-node starts deriving on the L1 block after what is in its config. This means we need SystemConfig.startBlock() - 1 rather than the start block itself. Two options on how to handle this:

  1. Have the genesis generation script fill in start block - 1 into the rollup config
  2. Make the starting L1 block be optional in the rollup config and use the startBlock() value as the starting point if its not present

I lean towards the second, it removes config overhead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions