Skip to content

Comments

Feature/revision tracking#41

Open
JH456 wants to merge 15 commits intora4king:masterfrom
JH456:feature/revision-tracking
Open

Feature/revision tracking#41
JH456 wants to merge 15 commits intora4king:masterfrom
JH456:feature/revision-tracking

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.

2 participants