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

Feature/revision tracking #41

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

JH456
Copy link

@JH456 JH456 commented Dec 31, 2018

  • Uses a baby blockchain to track details about each file revision (copy/pastes from other files and timestamps)
  • Breaks backwards compatibility with older versions (i.e you can't open up old .sim files with this version. Need to copy the file contents into a new file)

ra4king and others added 2 commits January 4, 2019 09:37
Co-Authored-By: JH456 <betterjimmy456@gmail.com>
Co-Authored-By: JH456 <betterjimmy456@gmail.com>
String decodedBlock = new String(Base64.getDecoder().decode(stringifiedBlock.getBytes()));
String[] fields = decodedBlock.split("\t");
if (fields.length < 4) {
throw new NullPointerException("File is corrupted. Contact Course Staff for Assistance.");
Copy link
Owner

Choose a reason for hiding this comment

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

I don't like "Contact course staff for assistance" because I want to keep course-specific content out of this. Perhaps: "File hash mismatch: file is corrupted."

return parse(readFile(file));
CircuitFile savedFile = parse(readFile(file));
if (!savedFile.revisionSignaturesAreValid()) {
throw new NullPointerException("File is corrupted. Contact Course Staff for Assistance.");
Copy link
Owner

Choose a reason for hiding this comment

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

Ditto

@ra4king
Copy link
Owner

ra4king commented Sep 19, 2022

I reviewed these changes years ago but apparently my comments never actually went out for review, they were pending this whole time /facepalm

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.

None yet

2 participants