Skip to content
Snippets Groups Projects
Commit 6b46c9c6 authored by inso's avatar inso
Browse files

Fix bug with node refresh

parent 1a642b03
Branches
Tags
No related merge requests found
...@@ -254,6 +254,7 @@ class Network(QObject): ...@@ -254,6 +254,7 @@ class Network(QObject):
if node.state in (Node.ONLINE, Node.DESYNCED): if node.state in (Node.ONLINE, Node.DESYNCED):
for nd in [n for n in self._nodes if n.state in (Node.ONLINE, Node.DESYNCED)]: for nd in [n for n in self._nodes if n.state in (Node.ONLINE, Node.DESYNCED)]:
nd.check_sync(self.latest_block_hash) nd.check_sync(self.latest_block_hash)
self.nodes_changed.emit()
else: else:
if node.last_change + 3600 < time.time(): if node.last_change + 3600 < time.time():
node.disconnect() node.disconnect()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment