mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 02:35:20 +00:00
speed-up search by starting at own height
This commit is contained in:
parent
7a8f337d28
commit
97343d95e5
1 changed files with 2 additions and 1 deletions
|
@ -993,7 +993,8 @@ class Network(util.DaemonThread):
|
||||||
interface.mode = 'backward'
|
interface.mode = 'backward'
|
||||||
interface.bad = height
|
interface.bad = height
|
||||||
interface.bad_header = header
|
interface.bad_header = header
|
||||||
self.request_header(interface, height - 1) # should be max(heights)
|
tip = max([x.height() for x in self.blockchains.values()])
|
||||||
|
self.request_header(interface, tip)
|
||||||
|
|
||||||
def blockchain(self):
|
def blockchain(self):
|
||||||
if self.interface and self.interface.blockchain is not None:
|
if self.interface and self.interface.blockchain is not None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue