utxpool

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package utxpool is a generated GoMock package.

Index

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 Cleaner

type Cleaner struct {
	// contains filtered or unexported fields
}

func NewCleaner

func NewCleaner(state state.State, pool types.UtxPool, tm types.Time) *Cleaner

func (*Cleaner) Clean added in v0.6.0

func (a *Cleaner) Clean()

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

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

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

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) Add added in v0.6.0

func (a *UtxImpl) Add(t proto.Transaction) error

func (*UtxImpl) AddBytes added in v0.8.1

func (a *UtxImpl) AddBytes(bts []byte) error

func (*UtxImpl) AddWithBytes

func (a *UtxImpl) AddWithBytes(t proto.Transaction, b []byte) error

TODO: add flag here to distinguish adding using API and accepting through the network from other nodes. When API is used, we should check all scripts completely. When adding from the network, only free complexity limit is checked.

func (*UtxImpl) AllTransactions added in v0.5.0

func (a *UtxImpl) AllTransactions() []*types.TransactionWithBytes

func (*UtxImpl) Count added in v0.5.0

func (a *UtxImpl) Count() int

func (*UtxImpl) CurSize added in v0.5.0

func (a *UtxImpl) CurSize() uint64

func (*UtxImpl) Exists

func (a *UtxImpl) Exists(t proto.Transaction) bool

func (*UtxImpl) ExistsByID added in v0.5.0

func (a *UtxImpl) ExistsByID(id []byte) bool

func (*UtxImpl) Len

func (a *UtxImpl) Len() int

func (*UtxImpl) Pop

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 NewValidator(state stateWrapper, tm types.Time, outdateMs uint64) *ValidatorImpl

func (*ValidatorImpl) Validate added in v0.5.0

func (a *ValidatorImpl) Validate(t proto.Transaction) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL