From 58146407f7fc337c3614dc8d03eb8c6b4e1145e3 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 3 Feb 2015 16:09:39 +0100 Subject: [PATCH] fix: gap_limit --- lib/account.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/account.py b/lib/account.py index 3e765d08d..9d90c1455 100644 --- a/lib/account.py +++ b/lib/account.py @@ -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: @@ -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 @@ -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)