Skip to content

Fix deleted renter file showing up after restart

Christopher Schinnerl requested to merge fix-renter-delete into master

Created by: ChrisSchinnerl

When a file is deleted while being repaired, the upload of the scheduled chunks will continue. Since the upload code modifies the uploaded file's metadata, the deleted .sia file will reappear and after a restart of sia, it will also be tracked by the renter again. This PR fixes this by introducing a deleted field that prevents deleted files from being saved to disk.

Merge request reports