electrum

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

commit 042c65939dde0eae0736f778703ae734e513e142
parent 6ad1c46aa55f2f54cb5a3f58d8b3df7fd9bb25f3
Author: ThomasV <thomasv@gitorious>
Date:   Wed,  9 Jul 2014 18:23:33 +0200

don't use address_is_old in code that can be run offline

Diffstat:
Mgui/qt/main_window.py | 2+-
Mlib/wallet.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -765,7 +765,7 @@ class ElectrumWindow(QMainWindow): self.receive_requests = self.wallet.storage.get('receive_requests',{}) domain = self.wallet.get_account_addresses(self.current_account, include_change=False) for addr in domain: - if not self.wallet.address_is_old(addr) and addr not in self.receive_requests.keys(): + if not self.wallet.history.get(addr) and addr not in self.receive_requests.keys(): break else: addr = '' diff --git a/lib/wallet.py b/lib/wallet.py @@ -1252,7 +1252,7 @@ class Deterministic_Wallet(Abstract_Wallet): return False prev_addresses = prev_addresses[max(0, i - limit):] for addr in prev_addresses: - if self.address_is_old(addr): + if self.history.get(addr): return False return True