mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
wallet: synchronize_sequence cleaned up a bit
This commit is contained in:
parent
55b582511e
commit
172ddf4aaf
1 changed files with 3 additions and 3 deletions
|
@ -1445,10 +1445,10 @@ class Deterministic_Wallet(Abstract_Wallet):
|
||||||
if len(addresses) < limit:
|
if len(addresses) < limit:
|
||||||
self.create_new_address(for_change)
|
self.create_new_address(for_change)
|
||||||
continue
|
continue
|
||||||
if list(map(lambda a: self.address_is_old(a), addresses[-limit:] )) == limit*[False]:
|
if any(map(self.address_is_old, addresses[-limit:])):
|
||||||
break
|
|
||||||
else:
|
|
||||||
self.create_new_address(for_change)
|
self.create_new_address(for_change)
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
def synchronize(self):
|
def synchronize(self):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
|
|
Loading…
Add table
Reference in a new issue