add label to internal transactions
authorthomasv <thomasv@gitorious>
Thu, 14 Mar 2013 12:08:50 +0000 (13:08 +0100)
committerthomasv <thomasv@gitorious>
Thu, 14 Mar 2013 12:08:50 +0000 (13:08 +0100)
lib/wallet.py

index 070a337..3814cd2 100644 (file)
@@ -722,6 +722,9 @@ class Wallet:
                             default_label = self.labels[o_addr]
                         except KeyError:
                             default_label = o_addr
+                        break
+                else:
+                    default_label = '(internal)'
             else:
                 for o in tx.outputs:
                     o_addr, _ = o