Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2022 Changes in this version + type Block interface + type PostForkBlock interface + type VM struct + func New(vm block.ChainVM, activationTime time.Time, minimumPChainHeight uint64) *VM + func (vm *VM) BatchedParseBlock(blks [][]byte) ([]snowman.Block, error) + func (vm *VM) BuildBlock() (snowman.Block, error) + func (vm *VM) Commit() error + func (vm *VM) GetAncestors(blkID ids.ID, maxBlocksNum int, maxBlocksSize int, ...) ([][]byte, error) + func (vm *VM) GetBlock(id ids.ID) (snowman.Block, error) + func (vm *VM) GetBlockIDAtHeight(height uint64) (ids.ID, error) + func (vm *VM) GetFullPostForkBlock(blkID ids.ID) (snowman.Block, error) + func (vm *VM) GetLastStateSummary() (block.StateSummary, error) + func (vm *VM) GetOngoingSyncStateSummary() (block.StateSummary, error) + func (vm *VM) GetStateSummary(height uint64) (block.StateSummary, error) + func (vm *VM) Initialize(ctx *snow.Context, dbManager manager.Manager, genesisBytes []byte, ...) error + func (vm *VM) LastAccepted() (ids.ID, error) + func (vm *VM) ParseBlock(b []byte) (snowman.Block, error) + func (vm *VM) ParseStateSummary(summaryBytes []byte) (block.StateSummary, error) + func (vm *VM) SetPreference(preferred ids.ID) error + func (vm *VM) SetState(newState snow.State) error + func (vm *VM) Shutdown() error + func (vm *VM) StateSyncEnabled() (bool, error) + func (vm *VM) VerifyHeightIndex() error v1.0.0-alpha Nov 22, 2022