Expand description
Transaction pool maintenance tasks.
Structsยง
- Pending
Staleness ๐Tracker - Tracks pending transactions across snapshots to detect stale transactions.
- Tempo
Pool ๐State - Tracking state for pool maintenance operations.
- Tempo
Pool Updates - Aggregated block-level invalidation events for the transaction pool.
Enumsยง
- Account
Keychain ๐Pool Event - Transaction-pool relevant subset of
IAccountKeychain::IAccountKeychainEvents. - FeeManager
Pool ๐Event - Transaction-pool relevant subset of
IFeeManager::IFeeManagerEvents. - Tip20
Pool ๐Event - Transaction-pool relevant subset of
ITIP20::ITIP20Events. - Tip403
Pool ๐Event - Transaction-pool relevant subset of
ITIP403Registry::ITIP403RegistryEvents.
Constantsยง
- DEFAULT_
PENDING_ ๐STALENESS_ INTERVAL - Default interval for pending transaction staleness checks (30 minutes). Transactions that remain pending across two consecutive snapshots will be evicted.
- EVICTION_
BUFFER_ ๐SECS - Evict transactions this many seconds before they expire to reduce propagation of near-expiry transactions that are likely to fail validation on peers.
- NEW_
TX_ ๐DRAIN_ LIMIT - Maximum number of new-transaction events to receive in a single maintenance wakeup before yielding back to the event loop. Bounds the per-wakeup work so a sustained burst of new transactions cannot starve block-commit processing.
Functionsยง
- decode_
event ๐ - Decodes after the caller has matched
topic0, avoiding the allocating invalid-signature error path for unrelated events. - first_
topic ๐ - maintain_
tempo_ pool - Unified maintenance task for the Tempo transaction pool.