Browse Source

bugfix: default to [], so that we do not create new addresses if the history was deleted

283
ThomasV 12 years ago
parent
commit
1ecce5dffc
  1. 2
      lib/wallet.py

2
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) )

Loading…
Cancel
Save