Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxPoolsCleaner ¶
type TxPoolsCleaner struct {
// contains filtered or unexported fields
}
TxPoolsCleaner represents a pools cleaner that check if a transaction should be in pool
func NewTxsPoolsCleaner ¶
func NewTxsPoolsCleaner( accounts state.AccountsAdapter, shardCoordinator sharding.Coordinator, dataPool dataRetriever.PoolsHolder, addrConverter state.AddressConverter, ) (*TxPoolsCleaner, error)
NewTxsPoolsCleaner will return a new transaction pools cleaner
func (*TxPoolsCleaner) Clean ¶
func (tpc *TxPoolsCleaner) Clean(duration time.Duration) (bool, error)
Clean will check if in pools exits transactions with nonce low that transaction sender account nonce and if tx have low nonce will be removed from pools
func (*TxPoolsCleaner) IsInterfaceNil ¶
func (tpc *TxPoolsCleaner) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*TxPoolsCleaner) NumRemovedTxs ¶
func (tpc *TxPoolsCleaner) NumRemovedTxs() uint64
NumRemovedTxs will return the number of removed txs from pools
Click to show internal directories.
Click to hide internal directories.