Skip to content
Snippets Groups Projects
Commit 2607d1dd authored by inso's avatar inso
Browse files

When a node goes back online, emit a changed signal

parent d9813593
Branches
Tags
No related merge requests found
......@@ -221,6 +221,11 @@ class Node(QObject):
block_number = block["number"]
node_pubkey = informations["pubkey"]
node_currency = informations["currency"]
#If the nodes goes back online...
if self.state in (Node.OFFLINE, Node.CORRUPTED):
self._change_state(Node.ONLINE)
emit_change = True
except ValueError as e:
if '404' in e:
block_number = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment