electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 172ddf4aaf2ecef6a897dd205da075f550acab1b
parent 55b582511e8d1b6d229836a120572ff9375b891b
Author: SomberNight <somber.night@protonmail.com>
Date:   Thu, 20 Sep 2018 20:04:50 +0200

wallet: synchronize_sequence cleaned up a bit

Diffstat:
Melectrum/wallet.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/electrum/wallet.py b/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: