From fefb88479462b8d782f92e0efe799c4c0497ccdc Mon Sep 17 00:00:00 2001 From: ecdsa Date: Sat, 16 Mar 2013 17:51:58 +0100 Subject: [PATCH] fix wallet.is_change() method --- lib/wallet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index 0383e4a21..9e3b5197d 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -178,8 +178,8 @@ class Wallet: return address in self.addresses(True) def is_change(self, address): - #return address in self.change_addresses - return False + acct, s = self.get_address_index(address) + return s[0] == 1 def get_master_public_key(self): return self.sequences[0].master_public_key