diff --git a/src/cutecoin/core/graph.py b/src/cutecoin/core/graph.py index 1b5e876d9f4c6a720e030f291c40d44a1c3352f3..a192d6d06bbbf5bfd9eb84cb2a5b604c5e2c05ae 100644 --- a/src/cutecoin/core/graph.py +++ b/src/cutecoin/core/graph.py @@ -188,7 +188,9 @@ class Graph(object): current_validations = 0 max_validation = self.community.network.fork_window(self.community.members_pubkeys()) + 1 - if current_validations < max_validation: + # Current validation can be negative if self.community.network.latest_block_number + # is not refreshed yet + if max_validation > current_validations > 0: if self.app.preferences['expert_mode']: arc['validation_text'] = "{0}/{1}".format(current_validations, max_validation) @@ -254,7 +256,7 @@ class Graph(object): current_validations = 0 max_validations = self.community.network.fork_window(self.community.members_pubkeys()) + 1 - if current_validations < max_validations: + if max_validations > current_validations > 0: if self.app.preferences['expert_mode']: arc['validation_text'] = "{0}/{1}".format(current_validations, max_validations)