Skip to content
Snippets Groups Projects
Commit 9ca44b6f authored by inso's avatar inso
Browse files

Fix issue #491 - display block hash of identity publication

The block hash is now displayed in the identity tab.
parent 7921e394
No related branches found
No related tags found
No related merge requests found
...@@ -117,9 +117,9 @@ class IdentitiesTableModel(QAbstractTableModel): ...@@ -117,9 +117,9 @@ class IdentitiesTableModel(QAbstractTableModel):
'pubkey': lambda: self.tr('Pubkey'), 'pubkey': lambda: self.tr('Pubkey'),
'renewed': lambda: self.tr('Renewed'), 'renewed': lambda: self.tr('Renewed'),
'expiration': lambda: self.tr('Expiration'), 'expiration': lambda: self.tr('Expiration'),
'publication': lambda: self.tr('Publication'), 'publication': lambda: self.tr('Publication Date'),
'validation': lambda: self.tr('Validation'),} 'block': lambda: self.tr('Publication Block'),}
self.columns_ids = ('uid', 'pubkey', 'renewed', 'expiration', 'publication') self.columns_ids = ('uid', 'pubkey', 'renewed', 'expiration', 'publication', 'block')
self.identities_data = [] self.identities_data = []
self._sig_validity = 0 self._sig_validity = 0
...@@ -155,10 +155,12 @@ class IdentitiesTableModel(QAbstractTableModel): ...@@ -155,10 +155,12 @@ class IdentitiesTableModel(QAbstractTableModel):
if identity.sigdate: if identity.sigdate:
sigdate_ts = await self.community.time(identity.sigdate.number) sigdate_ts = await self.community.time(identity.sigdate.number)
sigdate_block = identity.sigdate.sha_hash[:7]
else: else:
sigdate_ts = None sigdate_ts = None
sigdate_block = None
return identity.uid, identity.pubkey, join_date, expiration_date, sigdate_ts return identity.uid, identity.pubkey, join_date, expiration_date, sigdate_ts, sigdate_block
async def refresh_identities(self, identities): async def refresh_identities(self, identities):
""" """
......
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