mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
network: update UI when downloading chunks
This commit is contained in:
parent
518c6280e9
commit
014c0d3a41
1 changed files with 2 additions and 0 deletions
|
@ -355,12 +355,14 @@ class Interface(PrintError):
|
||||||
last = None
|
last = None
|
||||||
while last is None or height < next_height:
|
while last is None or height < next_height:
|
||||||
if next_height > height + 10:
|
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)
|
could_connect, num_headers = await self.request_chunk(height, next_height)
|
||||||
if not could_connect:
|
if not could_connect:
|
||||||
if height <= constants.net.max_checkpoint():
|
if height <= constants.net.max_checkpoint():
|
||||||
raise Exception('server chain conflicts with checkpoints or genesis')
|
raise Exception('server chain conflicts with checkpoints or genesis')
|
||||||
last, height = await self.step(height)
|
last, height = await self.step(height)
|
||||||
continue
|
continue
|
||||||
|
self.network.notify('updated')
|
||||||
height = (height // 2016 * 2016) + num_headers
|
height = (height // 2016 * 2016) + num_headers
|
||||||
if height > next_height:
|
if height > next_height:
|
||||||
assert False, (height, self.tip)
|
assert False, (height, self.tip)
|
||||||
|
|
Loading…
Add table
Reference in a new issue