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) BundleOps(entryPoint common.Address) ([]*userop.UserOperation, error)
- func (m *Mempool) GetOp(entryPoint common.Address, sender common.Address) (*userop.UserOperation, error)
- func (m *Mempool) RemoveOps(entryPoint common.Address, senders ...common.Address) 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) BundleOps ¶
BundleOps builds a bundle of ops from the mempool to be sent to the EntryPoint.
Click to show internal directories.
Click to hide internal directories.