engine

package
v0.0.0-...-7127fb3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBlockBuildingTimeout = 1 * time.Second

Functions

This section is empty.

Types

type API

type API interface {
	NewBlock(block *Block) error
	GetBlock() (*Block, error)
	LatestBlock() int
}

type Block

type Block = engine.ExecutableData

type LocalEngine

type LocalEngine struct {
	// contains filtered or unexported fields
}

func NewLocal

func NewLocal(alloc types.GenesisAlloc, options ...func(nodeConf *node.Config, ethConf *ethconfig.Config)) *LocalEngine

func (*LocalEngine) GetBlock

func (local *LocalEngine) GetBlock() (*Block, error)

func (*LocalEngine) LatestBlock

func (local *LocalEngine) LatestBlock() int

func (*LocalEngine) NewBlock

func (local *LocalEngine) NewBlock(block *Block) error

Jump to

Keyboard shortcuts

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