server_is_lagging: return True if no height
This commit is contained in:
@@ -245,7 +245,7 @@ class Network(util.DaemonThread):
|
||||
sh = self.get_server_height()
|
||||
if not sh:
|
||||
self.print_error('no height for main interface')
|
||||
return False
|
||||
return True
|
||||
lh = self.get_local_height()
|
||||
result = (lh - sh) > 1
|
||||
if result:
|
||||
|
||||
Reference in New Issue
Block a user