mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
interface: faster bootstrap of backwards search
This commit is contained in:
parent
4d502eb2bf
commit
7dc5665ab1
1 changed files with 2 additions and 1 deletions
|
@ -540,7 +540,8 @@ class Interface(PrintError):
|
|||
return True
|
||||
|
||||
bad, bad_header = height, header
|
||||
height -= 1
|
||||
local_max = max([0] + [x.height() for x in blockchain.blockchains.values()]) if 'mock' not in header else float('inf')
|
||||
height = min(local_max + 1, height - 1)
|
||||
while await iterate():
|
||||
bad, bad_header = height, header
|
||||
delta = self.tip - height
|
||||
|
|
Loading…
Add table
Reference in a new issue