diff --git a/src/cutecoin/core/net/node.py b/src/cutecoin/core/net/node.py index 8f2be8009e6b215a707d403a9ae6b48cee438309..699edf0417a8118076fea860f9a7b79da20bfbfd 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 729d843f66eefe0357aa4ee6e1d5dd733524c6fd..415f05bc2abf81fcc7262f310b27d992a1c50b1f 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: