Expand description
Mempool transaction storage.
The main struct Storage holds verified and rejected transactions.
Storage is effectively the data structure of the mempool. Convenient methods to
manage it are included.
Storage does not expose a service so it can only be used by other code directly.
Only code inside the crate::components::mempool module has access to it.
Modulesยง
- eviction_
list ๐ EvictionListrepresents the transaction eviction list with efficient operations.- policy ๐
- Mempool transaction standardness policy checks.
- verified_
set ๐ - The set of verified transactions in the mempool.
Structsยง
- Removed
Transaction Ids - Represents a set of transactions that have been removed from the mempool, either because they were mined, or because they were invalidated by another transaction that was mined.
- Storage
- Hold mempool verified and rejected mempool transactions.
Enumsยง
- Exact
TipRejection Error - Transactions rejected based on transaction authorizing data (scripts, proofs, signatures), or lock times. These rejections are only valid for the current tip.
- NonStandard
Transaction Error - Non-standard transaction error.
- Rejection
Error - Storage error that combines all other specific error types.
- Same
Effects Chain Rejection Error - Transactions rejected based only on their effects (spends, outputs, transaction header). These rejections are valid while the current chain continues to grow.
- Same
Effects TipRejection Error - Transactions rejected based only on their effects (spends, outputs, transaction header). These rejections are only valid for the current tip.
Constantsยง
- MAX_
EVICTION_ ๐MEMORY_ ENTRIES - The size limit for mempool transaction rejection lists per ZIP-401.