Browse Source

interface: faster bootstrap of backwards search

3.3.3.1
SomberNight 6 years ago
parent
commit
7dc5665ab1
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/interface.py

3
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

Loading…
Cancel
Save