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

Only persist the canonical chain #9897

Closed
Tracked by #8742
mattsse opened this issue Jul 30, 2024 · 0 comments · Fixed by #9908
Closed
Tracked by #8742

Only persist the canonical chain #9897

mattsse opened this issue Jul 30, 2024 · 0 comments · Fixed by #9908
Assignees
Labels
C-bug An unexpected or incorrect behavior

Comments

@mattsse
Copy link
Collaborator

mattsse commented Jul 30, 2024

this check currently selects all blocks, including uncle blocks

self.state
.tree_state
.blocks_by_number
.range(start..end)
.flat_map(|(_, blocks)| blocks.iter().cloned())
.collect()

TODO

This should select the canonical chain from the canonical head back to the last persisted block

@mattsse mattsse added the C-bug An unexpected or incorrect behavior label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug An unexpected or incorrect behavior
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants