tspeed-up search by starting at own height - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 97343d95e57d2045144f5404683ef6aeafcaa8f3 DIR parent 7a8f337d2804a4d2c4eab798085182ce1d106b01 HTML Author: ThomasV <thomasv@electrum.org> Date: Wed, 19 Jul 2017 16:28:17 +0200 speed-up search by starting at own height Diffstat: M lib/network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/network.py b/lib/network.py t@@ -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: