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

Pending Block and State can become out of sync #1789

Open
IronGauntlets opened this issue Apr 3, 2024 · 1 comment
Open

Pending Block and State can become out of sync #1789

IronGauntlets opened this issue Apr 3, 2024 · 1 comment
Assignees
Milestone

Comments

@IronGauntlets
Copy link
Contributor

Pending Block and State are written to the DB this means that any subsequent runs of Juno when pending-poll is disabled would have access to the old Pending Block and State which is no longer relevant.

There are 2 solutions:

  • Stop persisting the pending block and state across multiple runs of Juno and only manage it in memory. This may require a migration to remove the old pending block.
  • Check if the pending block is outdated and return ErrBlockNotFound.
@IronGauntlets
Copy link
Contributor Author

This should be done along with #1787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

No branches or pull requests

2 participants