Documentation
¶
Overview ¶
Package reth runs op-reth as an external subprocess and exposes it as a services.EthInstance, so op-e2e can use op-reth as the L2 execution layer. The launch/genesis/JWT/readiness machinery mirrors op-devstack/sysgo, which already drives op-reth this way.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// SequencerHTTP, when non-empty, wires op-reth to forward transactions to the
// sequencer via --rollup.sequencer-http (sentry tx-forwarding).
SequencerHTTP string
// ProofsHistoryVersion selects the proof-history storage version; defaults to v2.
ProofsHistoryVersion string
// DataDir is the base directory for the op-reth datadir/logs/proof-history.
// Callers should pass t.TempDir() so the test framework owns cleanup even if
// the test panics before Close.
DataDir string
// ExtraArgs are appended verbatim to the op-reth `node` invocation.
ExtraArgs []string
}
Config carries the op-e2e-level EL knobs that translate onto the op-reth CLI.
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance is a running op-reth process exposed through services.EthInstance.
func InitL2 ¶
func InitL2(ctx context.Context, lgr log.Logger, name string, genesis *core.Genesis, jwtPath string, cfg Config) (*Instance, error)
InitL2 resolves the op-reth binary, initializes a chain + proof-history DB from the given genesis, starts an op-reth node, and waits for its RPCs to come up. cfg.DataDir must be created with t.TempDir() by the caller.