Browse Source
interface: faster bootstrap of backwards search
3.3.3.1
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
1 deletions
-
electrum/interface.py
|
|
@ -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 |
|
|
|