mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
wallet: minor opt in get_history
This commit is contained in:
parent
825d7c2cbd
commit
fef15f9c02
1 changed files with 1 additions and 2 deletions
|
@ -528,8 +528,7 @@ class AddressSynchronizer(PrintError):
|
||||||
delta = tx_deltas[tx_hash]
|
delta = tx_deltas[tx_hash]
|
||||||
tx_mined_status = self.get_tx_height(tx_hash)
|
tx_mined_status = self.get_tx_height(tx_hash)
|
||||||
history.append((tx_hash, tx_mined_status, delta))
|
history.append((tx_hash, tx_mined_status, delta))
|
||||||
history.sort(key = lambda x: self.get_txpos(x[0]))
|
history.sort(key = lambda x: self.get_txpos(x[0]), reverse=True)
|
||||||
history.reverse()
|
|
||||||
# 3. add balance
|
# 3. add balance
|
||||||
c, u, x = self.get_balance(domain)
|
c, u, x = self.get_balance(domain)
|
||||||
balance = c + u + x
|
balance = c + u + x
|
||||||
|
|
Loading…
Add table
Reference in a new issue