tfix #4572 - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 0100af9389966d9d3ad8c372e816c7cd9905c6fd
DIR parent 01193be241fa1cafa263658750ed6b999e4701dc
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 19 Jul 2018 13:59:38 +0200
fix #4572
Diffstat:
M electrum/network.py | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
---
DIR diff --git a/electrum/network.py b/electrum/network.py
t@@ -876,13 +876,17 @@ class Network(util.DaemonThread):
if not connect:
self.connection_down(interface.server)
return
- # If not finished, get the next chunk
- if index >= len(blockchain.checkpoints) and blockchain.height() < interface.tip:
- self.request_chunk(interface, index+1)
+ if index >= len(blockchain.checkpoints):
+ # If not finished, get the next chunk
+ if blockchain.height() < interface.tip:
+ self.request_chunk(interface, index+1)
+ else:
+ interface.mode = 'default'
+ interface.print_error('catch up done', blockchain.height())
+ blockchain.catch_up = None
else:
- interface.mode = 'default'
- interface.print_error('catch up done', blockchain.height())
- blockchain.catch_up = None
+ # the verifier must have asked for this chunk
+ pass
self.notify('updated')
def on_get_header(self, interface, response):