From 9d2629c5c3e6be65c69820be697d10eb20223297 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 4 Feb 2020 19:04:38 +0100 Subject: [PATCH] blockchain.fork: better exception if datadir was deleted while running --- electrum/blockchain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/blockchain.py b/electrum/blockchain.py index 5f7c36cd7..259941bcd 100644 --- a/electrum/blockchain.py +++ b/electrum/blockchain.py @@ -258,6 +258,7 @@ class Blockchain(Logger): parent=parent, forkpoint_hash=hash_header(header), prev_hash=parent.get_hash(forkpoint-1)) + self.assert_headers_file_available(parent.path()) open(self.path(), 'w+').close() self.save_header(header) # put into global dict. note that in some cases