Browse Source

speed-up search by starting at own height

2.9.x
ThomasV 8 years ago
parent
commit
97343d95e5
  1. 3
      lib/network.py

3
lib/network.py

@ -993,7 +993,8 @@ class Network(util.DaemonThread):
interface.mode = 'backward'
interface.bad = height
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):
if self.interface and self.interface.blockchain is not None:

Loading…
Cancel
Save