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§
- Block
Session Context - 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.
- Script
Check - Script check with embedded per-input data. Workers use these directly without HashMap grouping or shared-buffer indirection (Core-style self-contained checks).
- Script
Check Queue - Script verification queue: N-1 dedicated workers + master joins.
- TxScript
Context - 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.