From 88fcd5b711639408c54692119c88c358b22cefba Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 19 Sep 2017 16:24:16 -0400 Subject: [PATCH] update _get_history for change in lbryum --- CHANGELOG.md | 1 + lbrynet/core/Wallet.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b11713d9b..8e163dcde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ at anytime. ### Fixed * Fixed `transaction_list` doc string + * Fixed ([in lbryum](https://github.com/lbryio/lbryum/pull/156)) batched queries responsible for making transaction and tip histories slow * ### Deprecated diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index b2f162680..1d56ae64b 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -1457,7 +1457,9 @@ class LBRYumWallet(Wallet): return self._run_cmd_as_defer_to_thread('getclaimtrie') def _get_history(self, include_tip_info): - return self._run_cmd_as_defer_succeed('history', include_tip_info) + if include_tip_info: + return self._run_cmd_as_defer_succeed('tiphistory') + return self._run_cmd_as_defer_succeed('claimhistory') def _address_is_mine(self, address): return self._run_cmd_as_defer_succeed('ismine', address)