electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 97343d95e57d2045144f5404683ef6aeafcaa8f3
parent 7a8f337d2804a4d2c4eab798085182ce1d106b01
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 19 Jul 2017 16:28:17 +0200

speed-up search by starting at own height

Diffstat:
Mlib/network.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/network.py b/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: