reth

package
v1.19.10 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	// GenesisJSONPath identifies an existing genesis JSON file for op-reth.
	// InitL2 does not decode or rewrite this file.
	GenesisJSONPath string
	// SequencerHTTP, when non-empty, wires op-reth to forward transactions to the
	// sequencer via --rollup.sequencer-http (sentry tx-forwarding).
	SequencerHTTP 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 initializes the op-reth databases, starts the node, and waits for its RPC endpoints. Set exactly one genesis source: genesis or cfg.GenesisJSONPath. The caller must create cfg.DataDir with t.TempDir().

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