Documentation ¶
Index ¶
- type MemPool
- type TxList
- func (tl *TxList) Empty() bool
- func (tl *TxList) FilterByState(st *types.State) (int, []types.Transaction)
- func (tl *TxList) Get() []types.Transaction
- func (tl *TxList) GetAccount() []byte
- func (tl *TxList) GetAll() []types.Transaction
- func (tl *TxList) GetLastModifiedTime() time.Time
- func (tl *TxList) Len() int
- func (tl *TxList) Put(tx types.Transaction) (int, error)
- type TxVerifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemPool ¶
type MemPool struct { *component.BaseComponent sync.RWMutex // contains filtered or unexported fields }
MemPool is main structure of mempool service
func NewMemPoolService ¶
func NewMemPoolService(cfg *cfg.Config, cs *chain.ChainService) *MemPool
NewMemPoolService create and return new MemPool
func (*MemPool) AfterStart ¶
func (mp *MemPool) AfterStart()
func (*MemPool) BeforeStop ¶
func (mp *MemPool) BeforeStop()
Stop handles clean-up for mempool service
func (*MemPool) Size ¶
Size returns current maintaining number of transactions and number of orphan transaction
func (*MemPool) Statistics ¶
type TxList ¶
TxList is internal struct for transactions per account
func (*TxList) FilterByState ¶ added in v0.8.1
SetMinNonce sets new minimum nonce for TxList evict on some transactions is possible due to minimum nonce
func (*TxList) Get ¶
func (tl *TxList) Get() []types.Transaction
Get returns processible transactions
func (*TxList) GetAccount ¶
func (*TxList) GetAll ¶
func (tl *TxList) GetAll() []types.Transaction
GetAll returns all transactions including orphans
func (*TxList) GetLastModifiedTime ¶ added in v0.9.4
type TxVerifier ¶
type TxVerifier struct {
// contains filtered or unexported fields
}
func NewTxVerifier ¶
func NewTxVerifier(p *MemPool) *TxVerifier
func (*TxVerifier) Receive ¶
func (s *TxVerifier) Receive(context actor.Context)
Receive actor message
Click to show internal directories.
Click to hide internal directories.