Skip to main content

Module admission_queue

Module admission_queue 

Source

Structs§

AdmissionQueueContext
Shared handle to a live admission queue. Holds the manager (for spawning a fresh per-epoch actor on reconfig), the per-epoch ArcSwap handle, and the cached (config-derived) bypass threshold. Cloned cheaply by Arc; passed both to ValidatorService (for hot-path routing) and through ValidatorComponents (for epoch rotation).
AdmissionQueueHandle
Cloneable handle for submitting transactions to the admission queue actor. Held by RPC handlers; the actor runs in a separate spawned task.
AdmissionQueueManager
Manages the lifecycle of per-epoch admission queue actors. Holds immutable config and shared metrics; call spawn() each epoch with the new epoch store to create a fresh actor and handle.
AdmissionQueueMetrics
Prometheus metrics for the admission queue.
InsertOutcome
Outcome of PriorityAdmissionQueue::try_insert. Any displaced entry is carried here unnotified so that the caller can deliver the notification outside of any held locks.
PriorityAdmissionQueue
Bounded priority queue that orders transactions by gas price. Uses a BTreeMap for efficient access at both ends: lowest gas price (for eviction) and highest gas price (for draining to consensus). Entries at the same gas price are FIFO.
QueueEntry
A transaction (or soft bundle) waiting in the admission queue for consensus submission.

Enums§

PopAction
What PriorityAdmissionQueue::pop_batch_while does with an examined entry.

Traits§

AdmissionQueueEntry