mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
fix #4572
This commit is contained in:
parent
01193be241
commit
0100af9389
1 changed files with 10 additions and 6 deletions
|
@ -876,13 +876,17 @@ class Network(util.DaemonThread):
|
||||||
if not connect:
|
if not connect:
|
||||||
self.connection_down(interface.server)
|
self.connection_down(interface.server)
|
||||||
return
|
return
|
||||||
|
if index >= len(blockchain.checkpoints):
|
||||||
# If not finished, get the next chunk
|
# If not finished, get the next chunk
|
||||||
if index >= len(blockchain.checkpoints) and blockchain.height() < interface.tip:
|
if blockchain.height() < interface.tip:
|
||||||
self.request_chunk(interface, index+1)
|
self.request_chunk(interface, index+1)
|
||||||
else:
|
else:
|
||||||
interface.mode = 'default'
|
interface.mode = 'default'
|
||||||
interface.print_error('catch up done', blockchain.height())
|
interface.print_error('catch up done', blockchain.height())
|
||||||
blockchain.catch_up = None
|
blockchain.catch_up = None
|
||||||
|
else:
|
||||||
|
# the verifier must have asked for this chunk
|
||||||
|
pass
|
||||||
self.notify('updated')
|
self.notify('updated')
|
||||||
|
|
||||||
def on_get_header(self, interface, response):
|
def on_get_header(self, interface, response):
|
||||||
|
|
Loading…
Add table
Reference in a new issue