Documentation ¶
Index ¶
- type MemPool
- type TxList
- func (tl *TxList) Empty() bool
- func (tl *TxList) FilterByState(st *types.State, coinbasefee *big.Int) (int, []*types.Tx)
- func (tl *TxList) Get() []*types.Tx
- func (tl *TxList) GetAccount() []byte
- func (tl *TxList) GetAll() []*types.Tx
- func (tl *TxList) GetLastModifiedTime() time.Time
- func (tl *TxList) Len() int
- func (tl *TxList) Put(tx *types.Tx) (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) GetAccount ¶
func (*TxList) GetLastModifiedTime ¶ added in v0.9.0
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.