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 FIRST_BLOCK_VOTED post-upgrade check #44

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

tschuyebuhl
Copy link
Contributor

Rationale is in the comment. I am not 100% sure about the assumption, will attempt to verify it with upcoming upgrades before merging.

// when the chain halts at height N, the height returned in consensus state should be N+1
// because the _next_ block is being voted on
// so we should return BlockSkipped only if the state goes further than that
if currentHeight > height+1 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should not change this function, rather, call CheckBlockSignedBy(.., UPGRADE_HEIGHT+1, ..)

@tschuyebuhl tschuyebuhl force-pushed the first-block-voted-check branch from 15ae333 to dccf9eb Compare February 28, 2025 15:12
@DavidVentura DavidVentura merged commit 2978299 into main Feb 28, 2025
2 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.

2 participants