Skip to content
Snippets Groups Projects
Commit 0248b7d1 authored by inso's avatar inso
Browse files

Fix division by zero #194

parent 70f8ea93
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,7 @@ class Graph(object): ...@@ -186,7 +186,7 @@ class Graph(object):
current_validations = self.community.network.latest_block_number - certifier['block_number'] current_validations = self.community.network.latest_block_number - certifier['block_number']
else: else:
current_validations = 0 current_validations = 0
max_validation = self.community.network.fork_window(self.community.members_pubkeys()) max_validation = self.community.network.fork_window(self.community.members_pubkeys()) + 1
if current_validations < max_validation: if current_validations < max_validation:
if self.app.preferences['expert_mode']: if self.app.preferences['expert_mode']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment