Documentation ¶
Overview ¶
Package proposervm is a generated GoMock package.
Index ¶
- type Block
- type MockPostForkBlock
- func (m *MockPostForkBlock) Accept() 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() error
- func (m *MockPostForkBlock) Status() choices.Status
- func (m *MockPostForkBlock) Timestamp() time.Time
- func (m *MockPostForkBlock) Verify() error
- type MockPostForkBlockMockRecorder
- func (mr *MockPostForkBlockMockRecorder) Accept() *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() *gomock.Call
- func (mr *MockPostForkBlockMockRecorder) Status() *gomock.Call
- func (mr *MockPostForkBlockMockRecorder) Timestamp() *gomock.Call
- func (mr *MockPostForkBlockMockRecorder) Verify() *gomock.Call
- type PostForkBlock
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPostForkBlock ¶ added in v1.9.1
type MockPostForkBlock struct {
// contains filtered or unexported fields
}
MockPostForkBlock is a mock of PostForkBlock interface.
func NewMockPostForkBlock ¶ added in v1.9.1
func NewMockPostForkBlock(ctrl *gomock.Controller) *MockPostForkBlock
NewMockPostForkBlock creates a new mock instance.
func (*MockPostForkBlock) Accept ¶ added in v1.9.1
func (m *MockPostForkBlock) Accept() error
Accept mocks base method.
func (*MockPostForkBlock) Bytes ¶ added in v1.9.1
func (m *MockPostForkBlock) Bytes() []byte
Bytes mocks base method.
func (*MockPostForkBlock) EXPECT ¶ added in v1.9.1
func (m *MockPostForkBlock) EXPECT() *MockPostForkBlockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPostForkBlock) Height ¶ added in v1.9.1
func (m *MockPostForkBlock) Height() uint64
Height mocks base method.
func (*MockPostForkBlock) ID ¶ added in v1.9.1
func (m *MockPostForkBlock) ID() ids.ID
ID mocks base method.
func (*MockPostForkBlock) Parent ¶ added in v1.9.1
func (m *MockPostForkBlock) Parent() ids.ID
Parent mocks base method.
func (*MockPostForkBlock) Reject ¶ added in v1.9.1
func (m *MockPostForkBlock) Reject() error
Reject mocks base method.
func (*MockPostForkBlock) Status ¶ added in v1.9.1
func (m *MockPostForkBlock) Status() choices.Status
Status mocks base method.
func (*MockPostForkBlock) Timestamp ¶ added in v1.9.1
func (m *MockPostForkBlock) Timestamp() time.Time
Timestamp mocks base method.
func (*MockPostForkBlock) Verify ¶ added in v1.9.1
func (m *MockPostForkBlock) Verify() error
Verify mocks base method.
type MockPostForkBlockMockRecorder ¶ added in v1.9.1
type MockPostForkBlockMockRecorder struct {
// contains filtered or unexported fields
}
MockPostForkBlockMockRecorder is the mock recorder for MockPostForkBlock.
func (*MockPostForkBlockMockRecorder) Accept ¶ added in v1.9.1
func (mr *MockPostForkBlockMockRecorder) Accept() *gomock.Call
Accept indicates an expected call of Accept.
func (*MockPostForkBlockMockRecorder) Bytes ¶ added in v1.9.1
func (mr *MockPostForkBlockMockRecorder) Bytes() *gomock.Call
Bytes indicates an expected call of Bytes.
func (*MockPostForkBlockMockRecorder) Height ¶ added in v1.9.1
func (mr *MockPostForkBlockMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height.
func (*MockPostForkBlockMockRecorder) ID ¶ added in v1.9.1
func (mr *MockPostForkBlockMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockPostForkBlockMockRecorder) Parent ¶ added in v1.9.1
func (mr *MockPostForkBlockMockRecorder) Parent() *gomock.Call
Parent indicates an expected call of Parent.
func (*MockPostForkBlockMockRecorder) Reject ¶ added in v1.9.1
func (mr *MockPostForkBlockMockRecorder) Reject() *gomock.Call
Reject indicates an expected call of Reject.
func (*MockPostForkBlockMockRecorder) Status ¶ added in v1.9.1
func (mr *MockPostForkBlockMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
func (*MockPostForkBlockMockRecorder) Timestamp ¶ added in v1.9.1
func (mr *MockPostForkBlockMockRecorder) Timestamp() *gomock.Call
Timestamp indicates an expected call of Timestamp.
func (*MockPostForkBlockMockRecorder) Verify ¶ added in v1.9.1
func (mr *MockPostForkBlockMockRecorder) Verify() *gomock.Call
Verify indicates an expected call of Verify.
type PostForkBlock ¶
type PostForkBlock interface { Block // contains filtered or unexported methods }
type VM ¶
type VM struct { block.ChainVM state.State proposer.Windower tree.Tree scheduler.Scheduler mockable.Clock // contains filtered or unexported fields }
func (*VM) BatchedParseBlock ¶ added in v1.6.4
func (*VM) GetAncestors ¶ added in v1.6.4
func (*VM) GetBlockIDAtHeight ¶ added in v1.7.5
vm.ctx.Lock should be held
func (*VM) GetFullPostForkBlock ¶ added in v1.7.5
Note: this is a contention heavy call that should be avoided for frequent/repeated indexer ops
func (*VM) GetLastStateSummary ¶ added in v1.7.11
func (vm *VM) GetLastStateSummary() (block.StateSummary, error)
func (*VM) GetOngoingSyncStateSummary ¶ added in v1.7.11
func (vm *VM) GetOngoingSyncStateSummary() (block.StateSummary, error)
func (*VM) GetStateSummary ¶ added in v1.7.11
func (vm *VM) GetStateSummary(height uint64) (block.StateSummary, error)
func (*VM) Initialize ¶
func (*VM) ParseStateSummary ¶ added in v1.7.11
func (vm *VM) ParseStateSummary(summaryBytes []byte) (block.StateSummary, error)
Note: it's important that ParseStateSummary do not use any index or state to allow summaries being parsed also by freshly started node with no previous state.
func (*VM) StateSyncEnabled ¶ added in v1.7.11
func (*VM) VerifyHeightIndex ¶ added in v1.7.5
vm.ctx.Lock should be held