From d5467cd4f303f41a919fd4507cd931215f204a72 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Mon, 18 May 2015 22:51:48 +0200 Subject: [PATCH] Fixed issue #131 --- src/cutecoin/core/net/node.py | 1 + src/cutecoin/core/wallet.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cutecoin/core/net/node.py b/src/cutecoin/core/net/node.py index 8f2be800..699edf04 100644 --- a/src/cutecoin/core/net/node.py +++ b/src/cutecoin/core/net/node.py @@ -248,6 +248,7 @@ class Node(QObject): peer = Peer.from_signed_raw("{0}{1}\n".format(p['value']['raw'], p['value']['signature'])) neighbours.append(peer.endpoints) + logging.debug("Found neighbours : {0}".format(len(neighbours))) node_currency = informations["currency"] node_uid = self._request_uid() diff --git a/src/cutecoin/core/wallet.py b/src/cutecoin/core/wallet.py index 729d843f..415f05bc 100644 --- a/src/cutecoin/core/wallet.py +++ b/src/cutecoin/core/wallet.py @@ -70,10 +70,13 @@ class Cache(): def _parse_transaction(self, community, tx, block_number, mediantime, received_list, txid): - logging.debug(tx) + #logging.debug(tx.signed_raw()) receivers = [o.pubkey for o in tx.outputs if o.pubkey != tx.issuers[0]] + if len(receivers) == 0: + receivers = [tx.issuers[0]] + try: issuer_uid = Person.lookup(tx.issuers[0], community).uid except PersonNotFoundError: -- GitLab