mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 23:41:35 +00:00
fix #2347 and return indentation
This commit is contained in:
parent
31fc9b78af
commit
db13cf965c
1 changed files with 2 additions and 2 deletions
|
@ -779,12 +779,12 @@ class Network(util.DaemonThread):
|
||||||
'''Handle receiving a single block header'''
|
'''Handle receiving a single block header'''
|
||||||
# close connection if header does not pass checkpoint
|
# close connection if header does not pass checkpoint
|
||||||
if not self.blockchain.pass_checkpoint(response['result']):
|
if not self.blockchain.pass_checkpoint(response['result']):
|
||||||
if interface == self.interface and not auto_connect:
|
if interface == self.interface and not self.auto_connect:
|
||||||
interface.failed_checkpoint = True
|
interface.failed_checkpoint = True
|
||||||
else:
|
else:
|
||||||
interface.print_error("header did not pass checkpoint, dismissing interface")
|
interface.print_error("header did not pass checkpoint, dismissing interface")
|
||||||
self.connection_down(interface.server)
|
self.connection_down(interface.server)
|
||||||
return
|
return
|
||||||
if self.blockchain.downloading_headers:
|
if self.blockchain.downloading_headers:
|
||||||
return
|
return
|
||||||
if self.bc_requests:
|
if self.bc_requests:
|
||||||
|
|
Loading…
Add table
Reference in a new issue