diff --git a/lib/wallet.py b/lib/wallet.py index a33a25f7..fb47a035 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -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