mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
do not return history if offline
This commit is contained in:
parent
75cac66876
commit
c84cc5bb8b
1 changed files with 3 additions and 0 deletions
|
@ -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]))
|
||||
|
|
Loading…
Add table
Reference in a new issue