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

backup files on write #542

Merged
merged 4 commits into from Oct 26, 2020
Merged

backup files on write #542

merged 4 commits into from Oct 26, 2020

Conversation

stepansnigirev
Copy link
Collaborator

looks like sometimes wallet files become damaged.
This PR introduces backup files (file.bkp) that are created before write.
When the write is complete the content of the file is checked, and if it is damaged - file is recovered from the backup.
When the file is read if reading from initial file failed we try to recover from the backup.

@stepansnigirev stepansnigirev merged commit b47b314 into cryptoadvance:master Oct 26, 2020
@stepansnigirev stepansnigirev deleted the backup-files branch October 26, 2020 11:47
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

1 participant