Skip to content

Resolve "Contractor persistence corrupted when disk is full"

I think by truncating the file to the required size, we should be able to abort SaveJSON before we end up corrupting the file by writing a partial JSON object. The one thing I'm not sure about is if a call to fsync is necesary after truncating the file to guarantee that enough space is available.

Closes #3153 (closed)

Edited by Christopher Schinnerl

Merge request reports