host

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FaultProofProgram added in v1.0.5

func FaultProofProgram(ctx context.Context, logger log.Logger, cfg *config.Config, opts ...ProgramOpt) 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 added in v1.0.6

func PreimageServer(ctx context.Context, logger log.Logger, cfg *config.Config, preimageChannel preimage.FileChannel, hintChannel preimage.FileChannel, prefetcherCreator PrefetcherCreator) 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 added in v1.1.4

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

func NewL2Client added in v1.1.4

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

func (*L2Client) OutputByRoot added in v1.1.4

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

type L2ClientConfig added in v1.1.4

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

type L2Source added in v1.0.5

type L2Source struct {
	*L2Client
	*sources.DebugClient
}

type Prefetcher

type Prefetcher interface {
	Hint(hint string) error
	GetPreimage(ctx context.Context, key common.Hash) ([]byte, error)
}

type PrefetcherCreator

type PrefetcherCreator func(ctx context.Context, logger log.Logger, kv kvstore.KV, cfg *config.Config) (Prefetcher, error)

type ProgramOpt

type ProgramOpt func(c *creatorsCfg)

func WithPrefetcher

func WithPrefetcher(creator PrefetcherCreator) ProgramOpt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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