commit 63f14f6ab2d4b306dd664e56560e434e1d322c5b parent 1b29945c6df7d2125885d9082ea52d1ed3e28c87 Author: ThomasV <thomasv@electrum.org> Date: Tue, 23 May 2017 07:58:40 +0200 fix: request chunk at next_height Diffstat:
M | lib/network.py | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/network.py b/lib/network.py @@ -847,9 +847,8 @@ class Network(util.DaemonThread): if interface.mode != 'default': self.request_header(interface, next_height) else: - local_height = self.get_local_height() - if interface.tip > local_height + 50: - self.request_chunk(interface, (local_height + 1) // 2016) + if interface.tip > next_height + 50: + self.request_chunk(interface, next_height // 2016) else: self.request_header(interface, next_height) else: