Browse Source

add comment in storage._write

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 5 years ago
parent
commit
8e4fe051d3
  1. 1
      electrum/storage.py

1
electrum/storage.py

@ -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)

Loading…
Cancel
Save