Skip to content

WIP: Ensure correct counter values

Ivaylo Novakov requested to merge ivo/rc_correct_counts into master

MERGE REQUEST

MR Guidelines

Overview

This MR aims to make the RefCounter's values match the actual number of backups/contracts for each sector. The counter values should be incremented when a backup is created and decremented when a backup is deleted(*) or a contract is deleted (or expires?).

  • (*) backup deletion is not implemented, yet

Example for Visual Changes

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

Part of #3836 Closes #4244

Edited by Matthew Sevey

Merge request reports