Skip to content

Comments

Remove Strongly Reach cache#151

Merged
Tjofil merged 1 commit intomainfrom
dfilip/remove_strongly_reach_cache
Jul 1, 2025
Merged

Remove Strongly Reach cache#151
Tjofil merged 1 commit intomainfrom
dfilip/remove_strongly_reach_cache

Conversation

@Tjofil
Copy link
Contributor

@Tjofil Tjofil commented Jul 1, 2025

This PR removes cache dedicated for Strongly Reach operation between two events. As of #24, the frame construction is reduced to a single stronglyReachableByQuorum operation and the reprocessing of roots can no longer happen. This means that the necessity of caching the strongly reach operation is greatly reduced, and only possible scenario where it could be helpful is when frame construction and election call the StronglyReach operation back-to-back, with same arguments. This can be eliminated with a simple memoization in future work.

Testing done:
All unit tests pass
Client build with the PR branch passes epochs [1, 1100] and [6720, 6970] and produces a correct head.

@Tjofil Tjofil self-assigned this Jul 1, 2025
@codecov
Copy link

codecov bot commented Jul 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@Tjofil Tjofil linked an issue Jul 1, 2025 that may be closed by this pull request
@Tjofil Tjofil merged commit fcd5e19 into main Jul 1, 2025
3 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.

Remove legacy Strongly Reach cache

4 participants