Skip to content
Snippets Groups Projects
Commit 2d9e4b08 authored by inso's avatar inso
Browse files

Fix bug with dividend reading when block is not downloaded yet

parent 3cfc66ae
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ class Community(QObject): ...@@ -142,7 +142,7 @@ class Community(QObject):
:return: The computed UD or 1 if no UD was generated. :return: The computed UD or 1 if no UD was generated.
""" """
block = self.get_ud_block() block = self.get_ud_block()
if block: if block and block != qtbma.blockchain.Block.null_value:
return math.ceil( return math.ceil(
max( max(
self.dividend, self.dividend,
......
...@@ -25,8 +25,7 @@ class Relative(): ...@@ -25,8 +25,7 @@ class Relative():
def value(self): def value(self):
""" """
Return relaive value of amount Return relative value of amount
type
:param int amount: Value :param int amount: Value
:param cutecoin.core.community.Community community: Community instance :param cutecoin.core.community.Community community: Community instance
:return: float :return: float
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment