Documentation ¶
Overview ¶
Package utxpool is a generated GoMock package.
Index ¶
- type BulkValidator
- type Cleaner
- type MockstateWrapper
- func (m *MockstateWrapper) EXPECT() *MockstateWrapperMockRecorder
- func (m *MockstateWrapper) Height() (proto.Height, error)
- func (m *MockstateWrapper) IsActivated(featureID int16) (bool, error)
- func (m *MockstateWrapper) Map(arg0 func(state.NonThreadSafeState) error) error
- func (m *MockstateWrapper) TopBlock() *proto.Block
- func (m *MockstateWrapper) TxValidation(arg0 func(state.TxValidation) error) error
- type MockstateWrapperMockRecorder
- func (mr *MockstateWrapperMockRecorder) Height() *gomock.Call
- func (mr *MockstateWrapperMockRecorder) IsActivated(featureID interface{}) *gomock.Call
- func (mr *MockstateWrapperMockRecorder) Map(arg0 interface{}) *gomock.Call
- func (mr *MockstateWrapperMockRecorder) TopBlock() *gomock.Call
- func (mr *MockstateWrapperMockRecorder) TxValidation(arg0 interface{}) *gomock.Call
- type NoOpValidator
- type UtxImpl
- func (a *UtxImpl) Add(t proto.Transaction) error
- func (a *UtxImpl) AddBytes(bts []byte) error
- func (a *UtxImpl) AddWithBytes(t proto.Transaction, b []byte) error
- func (a *UtxImpl) AllTransactions() []*types.TransactionWithBytes
- func (a *UtxImpl) Count() int
- func (a *UtxImpl) CurSize() uint64
- func (a *UtxImpl) Exists(t proto.Transaction) bool
- func (a *UtxImpl) ExistsByID(id []byte) bool
- func (a *UtxImpl) Len() int
- func (a *UtxImpl) Pop() *types.TransactionWithBytes
- type Validator
- type ValidatorImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkValidator ¶ added in v0.5.0
type BulkValidator interface {
Validate()
}
type MockstateWrapper ¶ added in v0.5.0
type MockstateWrapper struct {
// contains filtered or unexported fields
}
MockstateWrapper is a mock of stateWrapper interface.
func NewMockstateWrapper ¶ added in v0.5.0
func NewMockstateWrapper(ctrl *gomock.Controller) *MockstateWrapper
NewMockstateWrapper creates a new mock instance.
func (*MockstateWrapper) EXPECT ¶ added in v0.5.0
func (m *MockstateWrapper) EXPECT() *MockstateWrapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockstateWrapper) Height ¶ added in v0.5.0
func (m *MockstateWrapper) Height() (proto.Height, error)
Height mocks base method.
func (*MockstateWrapper) IsActivated ¶ added in v0.6.0
func (m *MockstateWrapper) IsActivated(featureID int16) (bool, error)
IsActivated mocks base method.
func (*MockstateWrapper) Map ¶ added in v0.8.0
func (m *MockstateWrapper) Map(arg0 func(state.NonThreadSafeState) error) error
Map mocks base method.
func (*MockstateWrapper) TopBlock ¶ added in v0.5.0
func (m *MockstateWrapper) TopBlock() *proto.Block
TopBlock mocks base method.
func (*MockstateWrapper) TxValidation ¶ added in v0.6.0
func (m *MockstateWrapper) TxValidation(arg0 func(state.TxValidation) error) error
TxValidation mocks base method.
type MockstateWrapperMockRecorder ¶ added in v0.5.0
type MockstateWrapperMockRecorder struct {
// contains filtered or unexported fields
}
MockstateWrapperMockRecorder is the mock recorder for MockstateWrapper.
func (*MockstateWrapperMockRecorder) Height ¶ added in v0.5.0
func (mr *MockstateWrapperMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height.
func (*MockstateWrapperMockRecorder) IsActivated ¶ added in v0.6.0
func (mr *MockstateWrapperMockRecorder) IsActivated(featureID interface{}) *gomock.Call
IsActivated indicates an expected call of IsActivated.
func (*MockstateWrapperMockRecorder) Map ¶ added in v0.8.0
func (mr *MockstateWrapperMockRecorder) Map(arg0 interface{}) *gomock.Call
Map indicates an expected call of Map.
func (*MockstateWrapperMockRecorder) TopBlock ¶ added in v0.5.0
func (mr *MockstateWrapperMockRecorder) TopBlock() *gomock.Call
TopBlock indicates an expected call of TopBlock.
func (*MockstateWrapperMockRecorder) TxValidation ¶ added in v0.6.0
func (mr *MockstateWrapperMockRecorder) TxValidation(arg0 interface{}) *gomock.Call
TxValidation indicates an expected call of TxValidation.
type NoOpValidator ¶ added in v0.5.0
type NoOpValidator struct { }
func (NoOpValidator) Validate ¶ added in v0.5.0
func (a NoOpValidator) Validate(t proto.Transaction) error
type UtxImpl ¶
type UtxImpl struct {
// contains filtered or unexported fields
}
func New ¶
func New(sizeLimit uint64, validator Validator, settings *settings.BlockchainSettings) *UtxImpl
func (*UtxImpl) AddWithBytes ¶
func (a *UtxImpl) AddWithBytes(t proto.Transaction, b []byte) error
func (*UtxImpl) AllTransactions ¶ added in v0.5.0
func (a *UtxImpl) AllTransactions() []*types.TransactionWithBytes
func (*UtxImpl) ExistsByID ¶ added in v0.5.0
func (*UtxImpl) Pop ¶
func (a *UtxImpl) Pop() *types.TransactionWithBytes
type Validator ¶ added in v0.5.0
type Validator interface {
Validate(t proto.Transaction) error
}
type ValidatorImpl ¶ added in v0.5.0
type ValidatorImpl struct {
// contains filtered or unexported fields
}
func NewValidator ¶ added in v0.5.0
func (*ValidatorImpl) Validate ¶ added in v0.5.0
func (a *ValidatorImpl) Validate(tx proto.Transaction) error