do not return history if offline
This commit is contained in:
@@ -1256,6 +1256,9 @@ class Wallet:
|
|||||||
|
|
||||||
|
|
||||||
def get_tx_history(self, account=None):
|
def get_tx_history(self, account=None):
|
||||||
|
if not self.verifier:
|
||||||
|
return []
|
||||||
|
|
||||||
with self.transaction_lock:
|
with self.transaction_lock:
|
||||||
history = self.transactions.items()
|
history = self.transactions.items()
|
||||||
history.sort(key = lambda x: self.verifier.get_txpos(x[0]))
|
history.sort(key = lambda x: self.verifier.get_txpos(x[0]))
|
||||||
|
|||||||
Reference in New Issue
Block a user