tblockchain.fork: better exception if datadir was deleted while running - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 9d2629c5c3e6be65c69820be697d10eb20223297
DIR parent f545d2b716d3e0a3d184473d03e16a35cbf2520e
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 4 Feb 2020 19:04:38 +0100
blockchain.fork: better exception if datadir was deleted while running
Diffstat:
M electrum/blockchain.py | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git a/electrum/blockchain.py b/electrum/blockchain.py
t@@ -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