Skip to content

Account Persistence

Peter-Jan Brone requested to merge account-persistence into master

MERGE REQUEST

MR Guidelines

Overview

This MR adds persistence to the account object. The accounts persistence file has a clean flag which tells us whether the accounts got saved properly on shutdown. The persistence object has a checksum to check for corruption. Most importantly, the accounts are only saved on shutdown, when the renter is restarted after an ungraceful shutdown, the clean will have not been set to 'true' which means all account data is ignored and all accounts are recreated fresh.

Example for Visual Changes

N/A

Checklist

Review and complete the checklist to ensure that the MR is complete before assigned to an approver.

  • All new methods or updated methods have clear docstrings
  • Testing added or updated for new methods
  • Any new packages are added to Makefile and .gitlab-ci.yml
  • API documentation updated for API updates
  • Module README.md updated for changes to workflow
  • Issue added to Sia-UI repo for new supporting features
  • Changelog File Created

Issues Closed

N/A

Edited by David Vorick

Merge request reports