network: connection_down if interface fails to connect chunk
This commit is contained in:
@@ -774,6 +774,7 @@ class Network(util.DaemonThread):
|
|||||||
connect = interface.blockchain.connect_chunk(index, result)
|
connect = interface.blockchain.connect_chunk(index, result)
|
||||||
# If not finished, get the next chunk
|
# If not finished, get the next chunk
|
||||||
if not connect:
|
if not connect:
|
||||||
|
self.connection_down(interface.server)
|
||||||
return
|
return
|
||||||
if interface.blockchain.height() < interface.tip:
|
if interface.blockchain.height() < interface.tip:
|
||||||
self.request_chunk(interface, index+1)
|
self.request_chunk(interface, index+1)
|
||||||
|
|||||||
Reference in New Issue
Block a user