Skip to main content

Module maintain

Module maintain 

Source
Expand description

Transaction pool maintenance tasks.

Structsยง

PendingStalenessTracker ๐Ÿ”’
Tracks pending transactions across snapshots to detect stale transactions.
TempoPoolState ๐Ÿ”’
Tracking state for pool maintenance operations.
TempoPoolUpdates
Aggregated block-level invalidation events for the transaction pool.

Enumsยง

AccountKeychainPoolEvent ๐Ÿ”’
Transaction-pool relevant subset of IAccountKeychain::IAccountKeychainEvents.
FeeManagerPoolEvent ๐Ÿ”’
Transaction-pool relevant subset of IFeeManager::IFeeManagerEvents.
Tip20PoolEvent ๐Ÿ”’
Transaction-pool relevant subset of ITIP20::ITIP20Events.
Tip403PoolEvent ๐Ÿ”’
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.