electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit fef15f9c0289fa38d5146d28d15e82cdad38f6f0
parent 825d7c2cbdd14c3a059d5819deb52e4571bfb4a7
Author: SomberNight <somber.night@protonmail.com>
Date:   Tue, 18 Sep 2018 16:41:56 +0200

wallet: minor opt in get_history

Diffstat:
Melectrum/address_synchronizer.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/electrum/address_synchronizer.py b/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