update blockchain size after initial file download

This commit is contained in:
ThomasV 2017-08-03 07:11:27 +02:00
parent 0d12784f1e
commit 57013ca985
1 changed files with 2 additions and 0 deletions

View File

@ -961,6 +961,8 @@ class Network(util.DaemonThread):
except Exception:
self.print_error("download failed. creating file", filename)
open(filename, 'wb+').close()
b = self.blockchains[0]
with b.lock: b.update_size()
self.downloading_headers = False
self.downloading_headers = True
t = threading.Thread(target = download_thread)