Skip to content

check and prevent usage out of bounds in contractmanager

David Vorick requested to merge usage into master

MERGE REQUEST

Overview

Fix #3788 (closed)

This is a band-aid attempt to fix an issue at startup where the sector usage would be updated after going out of bounds after an unclean shutdown. I opted for the band-aid route because truly understanding the issue and fixing it properly would probably be a several day effort of diving deep into the host's ACID internals.

That's the type of thing that will make more sense to do after we turn our attention back to the host.

Checklist

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

  • All new methods, or updating 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 work flow
  • Issue added to Sia-UI repo for new supporting features
  • Changelog updated

Merge request reports