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

play: exit if binary version mismatches latest epoch's #649

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

matthew-levan
Copy link
Contributor

The invariant that replay should not occur across binary versions was previously unenforced. This enforces it by setting a flag in the disk struct to indicate version mismatch between ourselves and the latest epoch's binary version number (saved in vere.txt).

Then, in the synchronous replay function, we exit if the same flag is set.

Questions:

  • Should we instruct the user to downgrade to a previous version before exit?
  • Should we make _disk_epoc_meta public (i.e. u3_disk_epoc_meta) so we can provide the specific version to revert to in the error message?

Note: Whitespace is cleaned up here automatically thanks to my editor and I don't see why not to include them in this PR. Happy to revert with request though as I don't really care either way.

@matthew-levan matthew-levan requested a review from a team as a code owner May 20, 2024 20:54
@matthew-levan matthew-levan requested a review from joemfb May 24, 2024 19:23
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.

1 participant