Versions in this module Expand all Collapse all v1 v1.12.2 Mar 3, 2025 Changes in this version + const DefaultMinBlockDelay + const DefaultNumHistoricalBlocks + type Block interface + type Config struct + MinBlkDelay time.Duration + NumHistoricalBlocks uint64 + Registerer prometheus.Registerer + StakingCertLeaf *staking.Certificate + StakingLeafSigner crypto.Signer + Upgrades upgrade.Config + type PostForkBlock interface + type VM struct + func New(vm block.ChainVM, config Config) *VM + func (vm *VM) BatchedParseBlock(ctx context.Context, blks [][]byte) ([]snowman.Block, error) + func (vm *VM) BuildBlock(ctx context.Context) (snowman.Block, error) + func (vm *VM) GetAncestors(ctx context.Context, blkID ids.ID, maxBlocksNum int, maxBlocksSize int, ...) ([][]byte, error) + func (vm *VM) GetBlock(ctx context.Context, id ids.ID) (snowman.Block, error) + func (vm *VM) GetBlockIDAtHeight(ctx context.Context, height uint64) (ids.ID, error) + func (vm *VM) GetLastStateSummary(ctx context.Context) (block.StateSummary, error) + func (vm *VM) GetOngoingSyncStateSummary(ctx context.Context) (block.StateSummary, error) + func (vm *VM) GetStateSummary(ctx context.Context, height uint64) (block.StateSummary, error) + func (vm *VM) Initialize(ctx context.Context, chainCtx *snow.Context, db database.Database, ...) error + func (vm *VM) LastAccepted(ctx context.Context) (ids.ID, error) + func (vm *VM) ParseBlock(ctx context.Context, b []byte) (snowman.Block, error) + func (vm *VM) ParseLocalBlock(ctx context.Context, b []byte) (snowman.Block, error) + func (vm *VM) ParseStateSummary(ctx context.Context, summaryBytes []byte) (block.StateSummary, error) + func (vm *VM) SetPreference(ctx context.Context, preferred ids.ID) error + func (vm *VM) SetState(ctx context.Context, newState snow.State) error + func (vm *VM) Shutdown(ctx context.Context) error + func (vm *VM) StateSyncEnabled(ctx context.Context) (bool, error)