Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + const DefaultMinBlockDelay + const DefaultNumHistoricalBlocks + type Block interface + type Config struct + ActivationTime time.Time + DurangoTime time.Time + MinBlkDelay time.Duration + MinimumPChainHeight uint64 + NumHistoricalBlocks uint64 + StakingCertLeaf *staking.Certificate + StakingLeafSigner crypto.Signer + func (c *Config) IsDurangoActivated(timestamp time.Time) bool + type MockPostForkBlock struct + func NewMockPostForkBlock(ctrl *gomock.Controller) *MockPostForkBlock + func (m *MockPostForkBlock) Accept(arg0 context.Context) error + func (m *MockPostForkBlock) Bytes() []byte + func (m *MockPostForkBlock) EXPECT() *MockPostForkBlockMockRecorder + func (m *MockPostForkBlock) Height() uint64 + func (m *MockPostForkBlock) ID() ids.ID + func (m *MockPostForkBlock) Parent() ids.ID + func (m *MockPostForkBlock) Reject(arg0 context.Context) error + func (m *MockPostForkBlock) Status() choices.Status + func (m *MockPostForkBlock) Timestamp() time.Time + func (m *MockPostForkBlock) Verify(arg0 context.Context) error + type MockPostForkBlockMockRecorder struct + func (mr *MockPostForkBlockMockRecorder) Accept(arg0 any) *gomock.Call + func (mr *MockPostForkBlockMockRecorder) Bytes() *gomock.Call + func (mr *MockPostForkBlockMockRecorder) Height() *gomock.Call + func (mr *MockPostForkBlockMockRecorder) ID() *gomock.Call + func (mr *MockPostForkBlockMockRecorder) Parent() *gomock.Call + func (mr *MockPostForkBlockMockRecorder) Reject(arg0 any) *gomock.Call + func (mr *MockPostForkBlockMockRecorder) Status() *gomock.Call + func (mr *MockPostForkBlockMockRecorder) Timestamp() *gomock.Call + func (mr *MockPostForkBlockMockRecorder) Verify(arg0 any) *gomock.Call + 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) 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)