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_BYTESwithheld 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_SIZEnotification. 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,
AuthenticityProofandExpiry. - STATEMENTS_
BURST_ COEFFICIENT - Burst capacity coefficient for the rate limiter.