reth

package
v1.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 17 Imported by: 0

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.

func (*Instance) AuthRPC

func (i *Instance) AuthRPC() endpoint.RPC

func (*Instance) Close

func (i *Instance) Close() error

Close interrupts the process, waits for it to exit, and closes the log pipes.

func (*Instance) UserRPC

func (i *Instance) UserRPC() endpoint.RPC

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL