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: restoring at the first block #691

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Sep 12, 2023

Description

The genesis can have more than one account. This PR checks if the number of accounts in the store exceeds the number of accounts in the genesis. If it does, it's considered that the blockchain is no longer at the genesis height.

Copy link
Contributor

@kehiy kehiy left a comment

Choose a reason for hiding this comment

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

everything looks good.
@b00f Thanks

@kehiy kehiy merged commit b146535 into pactus-project:main Sep 12, 2023
10 checks passed
@b00f b00f deleted the fixing-restore-first-block branch September 13, 2023 13:41
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