git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
87b94b3
)
fix is_change
author
ecdsa
<ecdsa@github>
Sun, 17 Mar 2013 20:13:10 +0000 (21:13 +0100)
committer
ecdsa
<ecdsa@github>
Sun, 17 Mar 2013 20:13:10 +0000 (21:13 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
0d55cec
..
fee23d3
100644
(file)
--- 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