Browse Source
wallet: synchronize_sequence cleaned up a bit
3.3.3.1
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
3 additions and
3 deletions
-
electrum/wallet.py
|
|
@ -1445,10 +1445,10 @@ class Deterministic_Wallet(Abstract_Wallet): |
|
|
|
if len(addresses) < limit: |
|
|
|
self.create_new_address(for_change) |
|
|
|
continue |
|
|
|
if list(map(lambda a: self.address_is_old(a), addresses[-limit:] )) == limit*[False]: |
|
|
|
break |
|
|
|
else: |
|
|
|
if any(map(self.address_is_old, addresses[-limit:])): |
|
|
|
self.create_new_address(for_change) |
|
|
|
else: |
|
|
|
break |
|
|
|
|
|
|
|
def synchronize(self): |
|
|
|
with self.lock: |
|
|
|