Skip to content

Conversation

wqfish
Copy link
Contributor

@wqfish wqfish commented Sep 10, 2025

Right now StateUpdateRefs has the most recent checkpoint. In order to compute
hot state, we need to perform eviction at the end of each block. When applying
to state sync, this means that we need to know all the checkpoints and not just
the most recent one.

Also refactored the code a bit such that extract_retries_and_discards is
simply responsible for extracting retries and discards, not for computing
has_reconfig.


Stack created with Sapling. Best reviewed with ReviewStack.

@wqfish wqfish force-pushed the pr17548 branch 2 times, most recently from 27e8a8c to 106db82 Compare September 10, 2025 19:18
@wqfish wqfish changed the title [Hot State] Have all checkpoint indices in StateUpdateRefs [Hot State] Prepare for having all checkpoint indices in StateUpdateRefs Sep 10, 2025
@wqfish wqfish force-pushed the pr17548 branch 2 times, most recently from f58709d to 16cb7ce Compare September 10, 2025 20:40
@wqfish wqfish marked this pull request as ready for review September 10, 2025 20:41
Right now `StateUpdateRefs` has the most recent checkpoint. In order to compute
hot state, we need to perform eviction at the end of each block. When applying
to state sync, this means that we need to know all the checkpoints and not just
the most recent one.

Also refactored the code a bit such that `extract_retries_and_discards` is
simply responsible for extracting retries and discards, not for computing
`has_reconfig`.
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.

1 participant