From e4dad0a42565a32824e8202c27e9f7b19ac790ed Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 5 Apr 2018 12:52:21 +0200 Subject: [PATCH] fix #4198 --- lib/synchronizer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/synchronizer.py b/lib/synchronizer.py index f3f4cbb5f..b43fd221e 100644 --- a/lib/synchronizer.py +++ b/lib/synchronizer.py @@ -108,8 +108,11 @@ class Synchronizer(ThreadJob): if not params: return addr = params[0] + server_status = self.requested_histories.get(addr) + if server_status is None: + self.print_error("receiving history (unsolicited)", addr, len(result)) + return self.print_error("receiving history", addr, len(result)) - server_status = self.requested_histories[addr] hashes = set(map(lambda item: item['tx_hash'], result)) hist = list(map(lambda item: (item['tx_hash'], item['height']), result)) # tx_fees