Skip to content
Snippets Groups Projects
Commit 480ca8fd authored by inso's avatar inso
Browse files

Reverse privatization of get_ud_block

parent a17a7f5c
No related branches found
No related tags found
No related merge requests found
......@@ -142,13 +142,13 @@ class Community(object):
@property
def dividend(self):
block = self._ud_block()
block = self.get_ud_block()
if block:
return block['dividend']
else:
return 1
def _ud_block(self):
def get_ud_block(self):
ud = self.request(bma.blockchain.UD)
if len(ud['result']['blocks']) > 0:
block_number = ud['result']['blocks'][-1]
......
......@@ -134,6 +134,7 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget):
self.tabs_account.addTab(self.tab_informations,
QIcon(':/icons/informations_icon'),
"Informations")
self.tab_informations.refresh()
blockid = self.community.current_blockid()
block_number = blockid['number']
self.status_label.setText("Connected : Block {0}"
......
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