Documentation ¶
Overview ¶
Package mempool provides a local representation of all the UserOperations 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(entryPoint common.Address, op *userop.UserOperation) error
- func (m *Mempool) Clear() error
- func (m *Mempool) Dump(entryPoint common.Address) ([]*userop.UserOperation, error)
- func (m *Mempool) GetOps(entryPoint common.Address, sender common.Address) ([]*userop.UserOperation, error)
- func (m *Mempool) RemoveOps(entryPoint common.Address, ops ...*userop.UserOperation) 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 UserOperations which have passed all Client checks.
func New ¶
New creates an instance of a mempool that uses an embedded DB to persist and load UserOperations from disk incase of a reset.
func (*Mempool) AddOp ¶
AddOp adds a UserOperation to the mempool or replace an existing one with the same EntryPoint, Sender, and Nonce values.
func (*Mempool) Clear ¶ added in v0.2.0
Clear will clear the entire embedded db and reset it to a clean state.
func (*Mempool) Dump ¶ added in v0.2.0
Dump will return a list of UserOperations from the mempool by EntryPoint in the order it arrived.