fix(core): peer pinning, idle eviction, replay and queue hardening

This commit is contained in:
2026-10-22 08:44:09 -07:00
parent 465410ca28
commit c5378b1099
3 changed files with 303 additions and 7 deletions
+5
View File
@@ -83,3 +83,8 @@ pub const BCAST_SENT_CAP: usize = 256;
/// LOCAL. Pending ack-id buffer (`acks` for addressed, `bcast_acks` for
/// broadcast) before the next Ack is emitted; overflow drops the oldest entry.
pub const ACK_BUFFER_CAP: usize = 256;
/// LOCAL. Idle eviction window: a peer with no inbound frame for longer than
/// this many ticks is removed as if Lost (`crate::exchange`). Never crosses
/// the wire; local only.
pub const PEER_IDLE_MS: u64 = 30_000;