host

package
v0.0.0-...-011bec4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FaultProofProgram

func FaultProofProgram(ctx context.Context, logger log.Logger, cfg *config.Config) error

FaultProofProgram is the programmatic entry-point for the fault proof program

func Main

func Main(logger log.Logger, cfg *config.Config) error

func PreimageServer

func PreimageServer(ctx context.Context, logger log.Logger, cfg *config.Config, preimageChannel oppio.FileChannel, hintChannel oppio.FileChannel) error

PreimageServer reads hints and preimage requests from the provided channels and processes those requests. This method will block until both the hinter and preimage handlers complete. If either returns an error both handlers are stopped. The supplied preimageChannel and hintChannel will be closed before this function returns.

Types

type L2Client

type L2Client struct {
	*sources.L2Client
	// contains filtered or unexported fields
}

func NewL2Client

func NewL2Client(client client.RPC, log log.Logger, metrics caching.Metrics, config *L2ClientConfig) (*L2Client, error)

func (*L2Client) OutputByRoot

func (s *L2Client) OutputByRoot(ctx context.Context, l2OutputRoot common.Hash) (eth.Output, error)

type L2ClientConfig

type L2ClientConfig struct {
	*sources.L2ClientConfig
	L2Head common.Hash
}

type L2Source

type L2Source struct {
	*L2Client
	*sources.DebugClient
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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