do not return history if offline
authorThomasV <thomasv@gitorious>
Tue, 5 Nov 2013 18:18:23 +0000 (19:18 +0100)
committerThomasV <thomasv@gitorious>
Tue, 5 Nov 2013 18:18:23 +0000 (19:18 +0100)
lib/wallet.py

index 731a898..832439a 100644 (file)
@@ -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]))