1
0

fix: network.interface can become None at any time

This commit is contained in:
SomberNight
2018-06-25 01:14:49 +02:00
parent f8dab46a4b
commit 51ed8a998c
3 changed files with 8 additions and 4 deletions

View File

@@ -126,7 +126,9 @@ class Synchronizer(ThreadJob):
tx_fees = dict(filter(lambda x:x[1] is not None, tx_fees))
# Note if the server hasn't been patched to sort the items properly
if hist != sorted(hist, key=lambda x:x[1]):
self.network.interface.print_error("serving improperly sorted address histories")
interface = self.network.interface
# note: we don't actually know which interface was used if it was *just* changed
if interface: interface.print_error("serving improperly sorted address histories")
# Check that txids are unique
if len(hashes) != len(result):
self.print_error("error: server history has non-unique txids: %s"% addr)