Skip to content

Based OP Geth: Port changes to OP Reth #265

@Karrq

Description

@Karrq

Currently we have a fork of OP Geth to add based sequencing and it lives at https://github.com/gattaca-com/based-op-geth

With the intent of fostering community support and protocol relayability, we should port the changes to OP Reth as well, more so than what is already being done at https://github.com/gattaca-com/based-op-reth

The objective is to be able to run the Based OP stack using Reth instead of Geth.

Diff view between upstream geth and based-op: ethereum-optimism/op-geth@optimism...gattaca-com:based-op-geth:based/develop

Non-complete list of logical changes to apply to Reth:

  • "Unsealed block" state
    a. Including configuration args (unsealed as latest)
    c. Sealing functionality & sealFragV0 RPC
    d. Reset on forkChoiceUpdate with different block number
    e. Seal validation against current unsealed block state
  • "Frag" handling
    a. Insertion into current unsealed block
    b. Simulation and cumulative gas usage (from previous frags)
    c. Typings and serialization
    d. newFragV0 RPC
    e. Automatic sealing with isLast
    f. Validation against current unsealed block state
  • "Env" handling
    a. Typings and serialization
    b. envV0 RPC
    c. Validation against current unsealed block state
    d. new Unsealed block creation
  • State view changes
    a. Block header from current unsealed block (if enabled)
    b. Tx Hash from current unsealed block

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions