block

package
v1.4.8-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMeterVM

func NewMeterVM(vm block.ChainVM) block.ChainVM

Types

type MeterVM

type MeterVM struct {
	block.ChainVM
	// contains filtered or unexported fields
}

func (*MeterVM) BuildBlock

func (vm *MeterVM) BuildBlock() (snowman.Block, error)

func (*MeterVM) GetBlock

func (vm *MeterVM) GetBlock(id ids.ID) (snowman.Block, error)

func (*MeterVM) Initialize

func (vm *MeterVM) Initialize(
	ctx *snow.Context,
	db manager.Manager,
	genesisBytes,
	upgradeBytes,
	configBytes []byte,
	toEngine chan<- common.Message,
	fxs []*common.Fx,
) error

func (*MeterVM) LastAccepted

func (vm *MeterVM) LastAccepted() (ids.ID, error)

func (*MeterVM) ParseBlock

func (vm *MeterVM) ParseBlock(b []byte) (snowman.Block, error)

func (*MeterVM) SetPreference

func (vm *MeterVM) SetPreference(id ids.ID) error

Jump to

Keyboard shortcuts

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