Documentation ¶
Index ¶
- Variables
- type API
- type Mempool
- func (pool *Mempool) AddLocal(tx types.Tx) error
- func (pool *Mempool) AddLocals(txs []types.Tx) []error
- func (pool *Mempool) AddTxs(txs []types.Tx) []error
- func (pool *Mempool) OnStart() error
- func (pool *Mempool) OnStop()
- func (pool *Mempool) Pending() types.Txs
- func (pool *Mempool) RegisterAPI()
- func (pool *Mempool) Stats() (int, int)
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 Mempool ¶
type Mempool struct { service.BaseService // contains filtered or unexported fields }
func NewMempool ¶
func NewMempool(chain *core.BlockChain, logger log.Logger) *Mempool
func (*Mempool) RegisterAPI ¶
func (pool *Mempool) RegisterAPI()
Click to show internal directories.
Click to hide internal directories.