1
0

network: fix server lag detection

This commit is contained in:
ThomasV
2013-10-05 10:01:33 +02:00
parent 7ca42d75ff
commit bc15caa84c
3 changed files with 48 additions and 17 deletions

View File

@@ -87,13 +87,15 @@ class Blockchain(threading.Thread):
print_error("height:", height, i.server)
for header in chain:
self.save_header(header)
self.height = height
else:
print_error("error", i.server)
# todo: dismiss that server
continue
self.network.new_blockchain_height(height, i)
if self.height != height:
self.height = height
self.network.new_blockchain_height(height, i)