Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node hangs while recomputing final_state caches #4101

Closed
Leo-Besancon opened this issue Jun 17, 2023 · 0 comments · Fixed by #4104
Closed

Node hangs while recomputing final_state caches #4101

Leo-Besancon opened this issue Jun 17, 2023 · 0 comments · Fixed by #4104
Assignees

Comments

@Leo-Besancon
Copy link
Collaborator

Leo-Besancon commented Jun 17, 2023

During some cycles, the function get_cycle_history_cycles() in pos_final_state, used to recompute the pos caches after bootstrap, never seems to return.
The while let loop seems to never stop (for instance I printed the found cycles and it went 509, 510, 511, 512, 513, 514, 515, 509...).

This is because the code for get_cycle_history_cycles() assumes the serialized keys order increase with the cycle. It is not true, e.g. the key for cycle 509 is greater than the key for cycle 513 in lexicography order.

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 a pull request may close this issue.

1 participant