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