Skip to main content

FIRST_AUDIT_DRAIN_BATCH

Constant FIRST_AUDIT_DRAIN_BATCH 

Source
pub const FIRST_AUDIT_DRAIN_BATCH: usize = 64;
Expand description

ADR-0004: max monetized-pin events the first-audit drainer drains from its channel per wake before it must run the audit-launch phase.

Bounds the synchronous try_recv batch so a sustained producer flood cannot starve audit launching by spinning in the drain loop forever. After this many events the drainer processes audits, then loops back to drain more.