Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBlockBuildingTimeout = 1 * time.Second
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.