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 rollbacks for epoch table #1370

Merged
merged 2 commits into from
Mar 2, 2023
Merged

Fix rollbacks for epoch table #1370

merged 2 commits into from
Mar 2, 2023

Conversation

erikd
Copy link
Contributor

@erikd erikd commented Mar 1, 2023

No description provided.

@erikd erikd requested a review from kderme as a code owner March 1, 2023 04:57
Previously there were no rollbacks on the epoch table because it was
assumed that the roll forward would fix it. That was unfortunately not
the case.

Closes: #1363
@erikd erikd force-pushed the erikd/issue-1363 branch from 4c9ceba to 7137ff8 Compare March 1, 2023 05:31
@erikd erikd force-pushed the erikd/issue-1363 branch from b10ef13 to 71cef7a Compare March 1, 2023 05:37
Copy link
Contributor

@kderme kderme left a comment

Choose a reason for hiding this comment

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

LGTM! I think this fixes a big part of the problem, the lack of rollback #1304

convert mr =
case mr of
Nothing -> Nothing
Just (_, Value Nothing) -> Nothing -- Should not ever happen.
Copy link
Contributor

Choose a reason for hiding this comment

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

Personal note this can't happen because it's only null for genesis which doesn't have a blockNo in the first place.

@erikd
Copy link
Contributor Author

erikd commented Mar 1, 2023

I intend to check the that this fixes if when the epoch rolls over in about an hour.

@erikd
Copy link
Contributor Author

erikd commented Mar 2, 2023

Seemed to work over the most recent epoch transition. Will merge this and keep an eye on it.

@erikd erikd merged commit d0372ce into master Mar 2, 2023
@iohk-bors iohk-bors bot deleted the erikd/issue-1363 branch March 2, 2023 00:12
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