1
0

auto-cycle: switch to the longest chain

This commit is contained in:
ThomasV
2013-10-03 14:56:48 +02:00
parent 1be0ea1494
commit c18a49b8fe
2 changed files with 8 additions and 6 deletions

View File

@@ -94,9 +94,12 @@ class Blockchain(threading.Thread):
self.network.trigger_callback('updated')
h = self.servers_height.get(self.network.interface.server)
if h is not None and h < height - 1:
print "server is lagging", height, h
self.network.interface.stop()
if h is not None and h < height :
print_error( "Server is lagging", height, h)
if self.config.get('auto_cycle'):
self.network.set_server(i.server)
else:
self.network.interface.stop()