Skip to main content

Module context

Module context 

Source

Macrosยง

spawn_with_log_level ๐Ÿ”’

Structsยง

DecideProcessorMetrics ๐Ÿ”’
Metrics for the background decide processor. backlog (decided - processed) is the key signal: sustained growth means staging tables accumulate (no data lost, but disk grows).
SequencerContext
The sequencer context contains a consensus handle and other sequencer specific information.
TaskList ๐Ÿ”’

Constantsยง

LEGACY_SHUTDOWN_DECIDE_COUNT ๐Ÿ”’
How many new-protocol decides to wait for before tearing down the legacy consensus stack (tasks + network). Once the coordinator has decided even a single leaf the cutover boundary is final and all consensus traffic runs on the coordinatorโ€™s network; the margin only gives slightly-lagging peers a window to finish crossing the boundary with legacy help.
PROCESS_RETRY_INTERVAL ๐Ÿ”’

Functionsยง

handle_events ๐Ÿ”’
process_decided_events_task ๐Ÿ”’
Turns persisted decided leaves into query-service decide events and GCs processed data. Decoupled from handle_events so slow ingestion/GC canโ€™t stall (or drop) consensus events; cursor-driven, so it can lag without losing data.

Type Aliasesยง

Consensus
ConsensusNode ๐Ÿ”’
DecideSignal ๐Ÿ”’
Latest decided view and its (optional) deciding QC, sent from the event loop to the background decide processor. None is the initial/no-op value of the watch channel.