commit 7e0d4a28510c87352a9ca23c54e4ca5a022c31d7
parent 87b94b3ccc4180a84e1f309ead65abd37eae3a9f
Author: ecdsa <ecdsa@github>
Date: Sun, 17 Mar 2013 21:13:10 +0100
fix is_change
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -177,6 +177,8 @@ class Wallet:
return address in self.addresses(True)
def is_change(self, address):
+ if not self.is_mine(address): return False
+ if address in self.imported_keys.keys(): return False
acct, s = self.get_address_index(address)
return s[0] == 1