Documentation ¶
Overview ¶
Package mempool provides a local representation of all the AiOperations that are known to the bundler which have passed all Client checks and pending action by the Bundler.
Index ¶
- type Mempool
- func (m *Mempool) AddOp(aiMiddleware common.Address, op *aiop.AiOperation) error
- func (m *Mempool) Clear() error
- func (m *Mempool) Dump(aiMiddleware common.Address) ([]*aiop.AiOperation, error)
- func (m *Mempool) GetOps(aiMiddleware common.Address, sender common.Address) ([]*aiop.AiOperation, error)
- func (m *Mempool) RemoveOps(aiMiddleware common.Address, ops ...*aiop.AiOperation) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mempool ¶
type Mempool struct {
// contains filtered or unexported fields
}
Mempool provides read and write access to a pool of pending AiOperations which have passed all Client checks.
func New ¶
New creates an instance of a mempool that uses an embedded DB to persist and load AiOperations from disk incase of a reset.
func (*Mempool) AddOp ¶
AddOp adds a AiOperation to the mempool or replace an existing one with the same AiMiddleware, Sender, and Nonce values.
func (*Mempool) Dump ¶
Dump will return a list of AiOperations from the mempool by AiMiddleware in the order it arrived.
Click to show internal directories.
Click to hide internal directories.