Browse Source

wallet: minor opt in get_history

3.3.3.1
SomberNight 6 years ago
parent
commit
fef15f9c02
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/address_synchronizer.py

3
electrum/address_synchronizer.py

@ -528,8 +528,7 @@ class AddressSynchronizer(PrintError):
delta = tx_deltas[tx_hash]
tx_mined_status = self.get_tx_height(tx_hash)
history.append((tx_hash, tx_mined_status, delta))
history.sort(key = lambda x: self.get_txpos(x[0]))
history.reverse()
history.sort(key = lambda x: self.get_txpos(x[0]), reverse=True)
# 3. add balance
c, u, x = self.get_balance(domain)
balance = c + u + x

Loading…
Cancel
Save