mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 12:55:10 +00:00
follow-up d1b8a6fae6
This commit is contained in:
parent
d1b8a6fae6
commit
40e13224f7
1 changed files with 2 additions and 1 deletions
|
@ -804,12 +804,13 @@ class Network(util.DaemonThread):
|
||||||
interface.print_error("unsolicited header",interface.request, height)
|
interface.print_error("unsolicited header",interface.request, height)
|
||||||
self.connection_down(interface.server)
|
self.connection_down(interface.server)
|
||||||
return
|
return
|
||||||
can_connect = blockchain.can_connect(header)
|
|
||||||
chain = blockchain.check_header(header)
|
chain = blockchain.check_header(header)
|
||||||
if interface.mode == 'backward':
|
if interface.mode == 'backward':
|
||||||
|
can_connect = blockchain.can_connect(header)
|
||||||
if can_connect and can_connect.catch_up is None:
|
if can_connect and can_connect.catch_up is None:
|
||||||
interface.mode = 'catch_up'
|
interface.mode = 'catch_up'
|
||||||
interface.blockchain = can_connect
|
interface.blockchain = can_connect
|
||||||
|
interface.blockchain.save_header(header)
|
||||||
next_height = height + 1
|
next_height = height + 1
|
||||||
interface.blockchain.catch_up = interface.server
|
interface.blockchain.catch_up = interface.server
|
||||||
elif chain:
|
elif chain:
|
||||||
|
|
Loading…
Add table
Reference in a new issue