Documentation ¶
Overview ¶
Package executor is a generated GoMock package.
Index ¶
- Variables
- type Block
- type Manager
- type MockManager
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) GetBlock(blkID ids.ID) (snowman.Block, error)
- func (m *MockManager) GetState(blkID ids.ID) (state.Chain, bool)
- func (m *MockManager) GetStatelessBlock(blkID ids.ID) (block.Block, error)
- func (m *MockManager) LastAccepted() ids.ID
- func (m *MockManager) NewBlock(arg0 block.Block) snowman.Block
- func (m *MockManager) Preferred() ids.ID
- func (m *MockManager) SetPreference(blkID ids.ID) bool
- func (m *MockManager) VerifyTx(tx *txs.Tx) error
- func (m *MockManager) VerifyUniqueInputs(blkID ids.ID, inputs set.Set[ids.ID]) error
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) GetBlock(blkID interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetState(blkID interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetStatelessBlock(blkID interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) LastAccepted() *gomock.Call
- func (mr *MockManagerMockRecorder) NewBlock(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Preferred() *gomock.Call
- func (mr *MockManagerMockRecorder) SetPreference(blkID interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) VerifyTx(tx interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) VerifyUniqueInputs(blkID, inputs interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var (
ErrChainNotSynced = errors.New("chain not synced")
)
var (
ErrConflictingBlockTxs = errors.New("block contains conflicting transactions")
)
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { state.Versions // Returns the ID of the most recently accepted block. LastAccepted() ids.ID SetPreference(blkID ids.ID) (updated bool) Preferred() ids.ID GetBlock(blkID ids.ID) (snowman.Block, error) GetStatelessBlock(blkID ids.ID) (block.Block, error) NewBlock(block.Block) snowman.Block // VerifyTx verifies that the transaction can be issued based on the currently // preferred state. This should *not* be used to verify transactions in a block. VerifyTx(tx *txs.Tx) error // VerifyUniqueInputs verifies that the inputs are not duplicated in the // provided blk or any of its ancestors pinned in memory. VerifyUniqueInputs(blkID ids.ID, inputs set.Set[ids.ID]) error }
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) GetStatelessBlock ¶
GetStatelessBlock mocks base method.
func (*MockManager) LastAccepted ¶
func (m *MockManager) LastAccepted() ids.ID
LastAccepted mocks base method.
func (*MockManager) NewBlock ¶
func (m *MockManager) NewBlock(arg0 block.Block) snowman.Block
NewBlock mocks base method.
func (*MockManager) Preferred ¶ added in v1.10.16
func (m *MockManager) Preferred() ids.ID
Preferred mocks base method.
func (*MockManager) SetPreference ¶ added in v1.10.16
func (m *MockManager) SetPreference(blkID ids.ID) bool
SetPreference mocks base method.
func (*MockManager) VerifyTx ¶ added in v1.10.16
func (m *MockManager) VerifyTx(tx *txs.Tx) error
VerifyTx mocks base method.
func (*MockManager) VerifyUniqueInputs ¶ added in v1.10.18
VerifyUniqueInputs mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) GetBlock ¶
func (mr *MockManagerMockRecorder) GetBlock(blkID interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockManagerMockRecorder) GetState ¶
func (mr *MockManagerMockRecorder) GetState(blkID interface{}) *gomock.Call
GetState indicates an expected call of GetState.
func (*MockManagerMockRecorder) GetStatelessBlock ¶
func (mr *MockManagerMockRecorder) GetStatelessBlock(blkID interface{}) *gomock.Call
GetStatelessBlock indicates an expected call of GetStatelessBlock.
func (*MockManagerMockRecorder) LastAccepted ¶
func (mr *MockManagerMockRecorder) LastAccepted() *gomock.Call
LastAccepted indicates an expected call of LastAccepted.
func (*MockManagerMockRecorder) NewBlock ¶
func (mr *MockManagerMockRecorder) NewBlock(arg0 interface{}) *gomock.Call
NewBlock indicates an expected call of NewBlock.
func (*MockManagerMockRecorder) Preferred ¶ added in v1.10.16
func (mr *MockManagerMockRecorder) Preferred() *gomock.Call
Preferred indicates an expected call of Preferred.
func (*MockManagerMockRecorder) SetPreference ¶ added in v1.10.16
func (mr *MockManagerMockRecorder) SetPreference(blkID interface{}) *gomock.Call
SetPreference indicates an expected call of SetPreference.
func (*MockManagerMockRecorder) VerifyTx ¶ added in v1.10.16
func (mr *MockManagerMockRecorder) VerifyTx(tx interface{}) *gomock.Call
VerifyTx indicates an expected call of VerifyTx.
func (*MockManagerMockRecorder) VerifyUniqueInputs ¶ added in v1.10.18
func (mr *MockManagerMockRecorder) VerifyUniqueInputs(blkID, inputs interface{}) *gomock.Call
VerifyUniqueInputs indicates an expected call of VerifyUniqueInputs.