poolsCleaner

package
v1.0.66 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

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 removes the transactions with lower nonces than the senders' accounts.

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

Jump to

Keyboard shortcuts

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