tdon't use address_is_old in code that can be run offline - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 042c65939dde0eae0736f778703ae734e513e142 DIR parent 6ad1c46aa55f2f54cb5a3f58d8b3df7fd9bb25f3 HTML 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: M gui/qt/main_window.py | 2 +- M lib/wallet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -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 = '' DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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