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

Fix prune guard #956

Closed
danwt opened this issue Jul 17, 2024 · 0 comments · Fixed by #966
Closed

Fix prune guard #956

danwt opened this issue Jul 17, 2024 · 0 comments · Fixed by #966
Assignees

Comments

@danwt
Copy link
Contributor

danwt commented Jul 17, 2024

The <= should be >

dymint/block/pruning.go

Lines 11 to 13 in e80bd53

if m.IsSequencer() && retainHeight <= m.NextHeightToSubmit() { // do not delete anything that we might submit in future
return fmt.Errorf("cannot prune blocks before they have been submitted: %d: %w", retainHeight, gerrc.ErrInvalidArgument)
}

@danwt danwt self-assigned this Jul 18, 2024
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