tfix: gap_limit - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 58146407f7fc337c3614dc8d03eb8c6b4e1145e3 DIR parent 22fdedf7a616409c9170df4098a228385fa52787 HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 3 Feb 2015 16:09:39 +0100 fix: gap_limit Diffstat: M lib/account.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) --- DIR diff --git a/lib/account.py b/lib/account.py t@@ -76,7 +76,7 @@ class Account(object): return None def synchronize_sequence(self, wallet, for_change): - limit = self.gap_limit_for_change if for_change else self.gap_limit + limit = wallet.gap_limit_for_change if for_change else wallet.gap_limit while True: addresses = self.get_addresses(for_change) if len(addresses) < limit: t@@ -175,14 +175,11 @@ class ImportedAccount(Account): class OldAccount(Account): """ Privatekey(type,n) = Master_private_key + H(n|S|type) """ - gap_limit = 5 - gap_limit_for_change = 3 def __init__(self, v): Account.__init__(self, v) self.mpk = v['mpk'].decode('hex') - @classmethod def mpk_from_seed(klass, seed): curve = SECP256k1 t@@ -274,8 +271,6 @@ class OldAccount(Account): class BIP32_Account(Account): - gap_limit = 20 - gap_limit_for_change = 3 def __init__(self, v): Account.__init__(self, v)