fix
authorthomasv <thomasv@gitorious>
Mon, 25 Feb 2013 17:50:12 +0000 (18:50 +0100)
committerthomasv <thomasv@gitorious>
Mon, 25 Feb 2013 17:50:12 +0000 (18:50 +0100)
lib/wallet.py

index a33a25f..fb47a03 100644 (file)
@@ -684,8 +684,7 @@ class Wallet:
                 self.addressbook.append(address)
 
         if label: 
-            tx_hash = Hash(tx.decode('hex') )[::-1].encode('hex')
-            self.labels[tx_hash] = label
+            self.labels[tx.hash()] = label
 
         return tx