Skip to content

Conversation

VolodymyrBg
Copy link
Contributor

Insert the current round before trimming and trim with a strict “> CACHE_SIZE” check to maintain an exact 8-round sliding window ending at the current round. Previously, cleaning before insertion caused the cache to stabilize at 9 entries after insertion, conflicting with the documented 8-round window and wasting an extra slot.

Copy link
Contributor

@twittner twittner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@twittner twittner merged commit d332773 into EspressoSystems:main Sep 12, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants