remove while loop from wallet.synchronize; we are already in a job
This commit is contained in:
parent
983e152ea3
commit
98b12715a9
|
@ -1475,14 +1475,10 @@ class Deterministic_Wallet(Abstract_Wallet):
|
|||
|
||||
def synchronize_sequence(self, for_change):
|
||||
limit = self.gap_limit_for_change if for_change else self.gap_limit
|
||||
while True:
|
||||
addresses = self.get_change_addresses() if for_change else self.get_receiving_addresses()
|
||||
if len(addresses) < limit:
|
||||
self.create_new_address(for_change)
|
||||
continue
|
||||
if map(lambda a: self.address_is_old(a), addresses[-limit:] ) == limit*[False]:
|
||||
break
|
||||
else:
|
||||
elif map(lambda a: self.address_is_old(a), addresses[-limit:]) != limit*[False]:
|
||||
self.create_new_address(for_change)
|
||||
|
||||
def synchronize(self):
|
||||
|
|
Loading…
Reference in New Issue