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

Fixed issue #131

parent e8934edb
No related branches found
No related tags found
No related merge requests found
...@@ -248,6 +248,7 @@ class Node(QObject): ...@@ -248,6 +248,7 @@ class Node(QObject):
peer = Peer.from_signed_raw("{0}{1}\n".format(p['value']['raw'], peer = Peer.from_signed_raw("{0}{1}\n".format(p['value']['raw'],
p['value']['signature'])) p['value']['signature']))
neighbours.append(peer.endpoints) neighbours.append(peer.endpoints)
logging.debug("Found neighbours : {0}".format(len(neighbours)))
node_currency = informations["currency"] node_currency = informations["currency"]
node_uid = self._request_uid() node_uid = self._request_uid()
......
...@@ -70,10 +70,13 @@ class Cache(): ...@@ -70,10 +70,13 @@ class Cache():
def _parse_transaction(self, community, tx, block_number, def _parse_transaction(self, community, tx, block_number,
mediantime, received_list, txid): mediantime, received_list, txid):
logging.debug(tx) #logging.debug(tx.signed_raw())
receivers = [o.pubkey for o in tx.outputs receivers = [o.pubkey for o in tx.outputs
if o.pubkey != tx.issuers[0]] if o.pubkey != tx.issuers[0]]
if len(receivers) == 0:
receivers = [tx.issuers[0]]
try: try:
issuer_uid = Person.lookup(tx.issuers[0], community).uid issuer_uid = Person.lookup(tx.issuers[0], community).uid
except PersonNotFoundError: except PersonNotFoundError:
......
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