Skip to content
Snippets Groups Projects
Commit 85cab569 authored by inso's avatar inso
Browse files

Fix sources parsing

parent 62326961
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@ class SourcesServices(QObject):
"""
txdoc = TransactionDoc.from_signed_raw(transaction.raw)
for offset, output in enumerate(txdoc.outputs):
if output.conditions.left.pubkey == pubkey:
source = Source(currency=self.currency,
pubkey=pubkey,
identifier=txdoc.sha_hash,
......@@ -201,6 +202,7 @@ class SourcesServices(QObject):
# there can be bugs if the current base switch during the parsing of blocks
# but since it only happens every 23 years and that its only on accounts having less than 100
# this is acceptable I guess
destructions[conn] += await self.refresh_sources_of_pubkey(conn.pubkey, transactions[conn],
dividends[conn], current_base)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment