Skip to main content

Module config

Module config 

Source
Expand description

Configuration of the statement protocol

Constantsยง

DEFAULT_STATEMENTS_PER_SECOND
Default maximum statements per second before rate limiting kicks in.
INITIAL_SYNC_RESERVED_BYTES
Part of MAX_SEND_IN_FLIGHT_BYTES withheld from propagation while initial syncs are pending. Freed budget is otherwise reclaimed synchronously by parked propagations, while sync bursts only check on a timer and would always find the budget full.
MAX_PENDING_STATEMENTS
Maximum number of statement validation request we keep at any moment.
MAX_PROPAGATION_OUTBOX_LEN
Maximum number of statement hashes queued for propagation to one peer. On overflow the oldest hashes are dropped first.
MAX_SEND_IN_FLIGHT_BYTES
Soft limit on encoded statement chunks held in flight across all peers, shared by initial-sync and propagation sends. Since admission is checked before adding the next whole notification, it may be exceeded by less than one maximum-sized notification.
MAX_STATEMENTS_PER_NOTIFICATION
Most statements a sender can pack into a full MAX_STATEMENT_NOTIFICATION_SIZE notification. A batch declaring more is rejected before decoding.
MAX_STATEMENT_NOTIFICATION_SIZE
Maximum allowed size for a statement notification.
MIN_ENCODED_STATEMENT_SIZE
Minimum wire size of a valid statement: field-count prefix, AuthenticityProof and Expiry.
STATEMENTS_BURST_COEFFICIENT
Burst capacity coefficient for the rate limiter.