mempool

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyKnown   = errors.New("already known")
	ErrTxPoolOverflow = errors.New("txpool is full")
)

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func (*API) Status

func (s *API) Status() map[string]hexutil.Uint

Status returns the number of pending and queued transaction in the pool.

type Mempool

type Mempool struct {
	service.BaseService
	// contains filtered or unexported fields
}

func NewMempool

func NewMempool(chain *core.BlockChain, logger log.Logger) *Mempool

func (*Mempool) AddLocal

func (pool *Mempool) AddLocal(tx types.Tx) error

func (*Mempool) AddLocals

func (pool *Mempool) AddLocals(txs []types.Tx) []error

func (*Mempool) AddTxs

func (pool *Mempool) AddTxs(txs []types.Tx) []error

func (*Mempool) OnStart

func (pool *Mempool) OnStart() error

func (*Mempool) OnStop

func (pool *Mempool) OnStop()

func (*Mempool) Pending

func (pool *Mempool) Pending() types.Txs

func (*Mempool) RegisterAPI

func (pool *Mempool) RegisterAPI()

func (*Mempool) Stats

func (pool *Mempool) Stats() (int, int)

Jump to

Keyboard shortcuts

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