do not return history if offline

This commit is contained in:
ThomasV 2013-11-05 19:18:23 +01:00
parent 75cac66876
commit c84cc5bb8b
1 changed files with 3 additions and 0 deletions

View 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]))