electrum

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

commit 036147db444af55ab83cffb895c41d1a4fe3a385
parent 58146407f7fc337c3614dc8d03eb8c6b4e1145e3
Author: ThomasV <thomasv@gitorious>
Date:   Tue,  3 Feb 2015 16:18:42 +0100

fix: change_gap_limit

Diffstat:
Mlib/wallet.py | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1142,17 +1142,15 @@ class Deterministic_Wallet(Abstract_Wallet): if value >= self.gap_limit: self.gap_limit = value self.storage.put('gap_limit', self.gap_limit, True) - #self.interface.poke('synchronizer') return True elif value >= self.min_acceptable_gap(): for key, account in self.accounts.items(): - addresses = account[0] + addresses = account.get_addresses(False) k = self.num_unused_trailing_addresses(addresses) n = len(addresses) - k + value - addresses = addresses[0:n] - self.accounts[key][0] = addresses - + account.receiving_pubkeys = account.receiving_pubkeys[0:n] + account.receiving_addresses = account.receiving_addresses[0:n] self.gap_limit = value self.storage.put('gap_limit', self.gap_limit, True) self.save_accounts()