host

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FaultProofProgramWithDefaultPrefecher added in v1.11.0

func FaultProofProgramWithDefaultPrefecher(ctx context.Context, logger log.Logger, cfg *config.Config, opts ...hostcommon.ProgramOpt) error

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

func Main added in v1.0.6

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

func MakeProgramExecutor added in v1.11.0

func MakeProgramExecutor(logger log.Logger, cfg *config.Config) prefetcher.ProgramExecutor

Types

type Prefetcher added in v1.9.3

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

type PrefetcherCreator added in v1.9.3

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

type ProgramOpt added in v1.9.3

type ProgramOpt func(c *creatorsCfg)

func WithPrefetcher added in v1.9.3

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