tdo not return history if offline - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c84cc5bb8b4fa38e7eaead5860a676f0275a9e6f DIR parent 75cac668761503ed2b2aecccb1ff5d98dad441e8 HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 5 Nov 2013 19:18:23 +0100 do not return history if offline Diffstat: M lib/wallet.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1256,6 +1256,9 @@ class Wallet: def get_tx_history(self, account=None): + if not self.verifier: + return [] + with self.transaction_lock: history = self.transactions.items() history.sort(key = lambda x: self.verifier.get_txpos(x[0]))