tnetwork: update UI when downloading chunks - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 014c0d3a41090698b3d3d0c602988ad9bf771f73
DIR parent 518c6280e9b29a9b9f09f2a5db3df1c8dc2c25b4
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 11 Sep 2018 21:44:17 +0200
network: update UI when downloading chunks
Diffstat:
M electrum/interface.py | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/electrum/interface.py b/electrum/interface.py
t@@ -355,12 +355,14 @@ class Interface(PrintError):
last = None
while last is None or height < next_height:
if next_height > height + 10:
+ self.print_error("requesting chunk from height {}".format(height))
could_connect, num_headers = await self.request_chunk(height, next_height)
if not could_connect:
if height <= constants.net.max_checkpoint():
raise Exception('server chain conflicts with checkpoints or genesis')
last, height = await self.step(height)
continue
+ self.network.notify('updated')
height = (height // 2016 * 2016) + num_headers
if height > next_height:
assert False, (height, self.tip)