Skip to main content

Module checkqueue

Module checkqueue 

Source
Expand description

Script verification queue: dedicated N-1 worker threads plus master as Nth.

Producer adds checks per-tx; workers pull batches and verify. Master joins until queue empty. Batch size from ibd_tuning (default 128, env/config override).

Structs§

BlockSessionContext
Session context for one block; set at start_session, used by workers until complete. When schnorr_collector is None, verify in-place (no batch collection). TxScriptContext stored in Arc to avoid cloning full context per check (workers get Arc::clone). Block-level buffers are immutable (Arc<Vec<…>>) — no locks during worker execution.
ScriptCheck
Script check with embedded per-input data. Workers use these directly without HashMap grouping or shared-buffer indirection (Core-style self-contained checks).
ScriptCheckQueue
Script verification queue: N-1 dedicated workers + master joins.
TxScriptContext
Per-tx context shared by all inputs of that tx. prevout_script_pubkeys and prevout_values in block-level buffers; context holds (start, count) ranges to avoid per-tx Vec allocations.