Documentation ¶
Index ¶
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()
BeforeStop 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 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.