fix #4572
This commit is contained in:
@@ -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 not finished, get the next chunk
|
if index >= len(blockchain.checkpoints):
|
||||||
if index >= len(blockchain.checkpoints) and blockchain.height() < interface.tip:
|
# If not finished, get the next chunk
|
||||||
self.request_chunk(interface, index+1)
|
if blockchain.height() < interface.tip:
|
||||||
|
self.request_chunk(interface, index+1)
|
||||||
|
else:
|
||||||
|
interface.mode = 'default'
|
||||||
|
interface.print_error('catch up done', blockchain.height())
|
||||||
|
blockchain.catch_up = None
|
||||||
else:
|
else:
|
||||||
interface.mode = 'default'
|
# the verifier must have asked for this chunk
|
||||||
interface.print_error('catch up done', blockchain.height())
|
pass
|
||||||
blockchain.catch_up = None
|
|
||||||
self.notify('updated')
|
self.notify('updated')
|
||||||
|
|
||||||
def on_get_header(self, interface, response):
|
def on_get_header(self, interface, response):
|
||||||
|
|||||||
Reference in New Issue
Block a user