Skip to main content

Module inbound_dedup

Module inbound_dedup 

Source
Expand description

InboundDedup - sliding-window seen-message tracker per ENGINE.md §10.4.

Recv-flavoured wire ops consult this set to discard envelopes that repeat a recently-seen message hash. Storage is bounded - when the window fills, the oldest entry is evicted.

lands a simple LRU-by-insertion-order implementation;

Structs§

InboundDedup
Sliding-window seen-message tracker.

Constants§

DEFAULT_WINDOW_SIZE
Default rolling window (8192 distinct message hashes). Picked to be roughly 2× the default ingress capacity so duplicates from concurrent peers don’t collide with recent legit traffic.