twallet: minor opt in get_history - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit fef15f9c0289fa38d5146d28d15e82cdad38f6f0
DIR parent 825d7c2cbdd14c3a059d5819deb52e4571bfb4a7
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 18 Sep 2018 16:41:56 +0200
wallet: minor opt in get_history
Diffstat:
M electrum/address_synchronizer.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
DIR diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py
t@@ -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