commit 1ecce5dffcf9d508db07a276d918cc0282acf8e0
parent a63b9e527e28e7d9c5e16add39fa1d2dd3d4c6f1
Author: ThomasV <thomasv@gitorious>
Date: Fri, 26 Oct 2012 18:00:32 +0200
bugfix: default to [], so that we do not create new addresses if the history was deleted
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -337,7 +337,7 @@ class Wallet:
if len(self.addresses) < n:
new_addresses.append( self.create_new_address(False) )
continue
- if map( lambda a: self.history.get(a), self.addresses[-n:] ) == n*[[]]:
+ if map( lambda a: self.history.get(a, []), self.addresses[-n:] ) == n*[[]]:
break
else:
new_addresses.append( self.create_new_address(False) )