1
0

add comment in storage._write

This commit is contained in:
ThomasV
2019-09-10 09:25:42 +02:00
parent cefa4762ba
commit 8e4fe051d3

View File

@@ -106,6 +106,7 @@ class WalletStorage(Logger):
os.fsync(f.fileno())
mode = os.stat(self.path).st_mode if self.file_exists() else stat.S_IREAD | stat.S_IWRITE
# assert that wallet file does not exist, to prevent wallet corruption (see issue #5082)
if not self.file_exists():
assert not os.path.exists(self.path)
os.replace(temp_path, self.path)