mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-07 07:53:07 +00:00
Stale entries in peer.lastSentWants were not removed when blocks were resolved or cancelled, causing unbounded memory growth. This adds incremental cleanup during refreshBlockKnowledge, removing up to 2048 stale entries per refresh cycle with proper event loop yielding. Part of https://github.com/codex-storage/nim-codex/issues/974 Signed-off-by: Chrysostomos Nanakos <chris@include.gr>