From 0c5f42cc29b782539dbf55844e96228a4d5a4a27 Mon Sep 17 00:00:00 2001 From: thomasv Date: Sat, 23 Feb 2013 13:29:03 +0100 Subject: [PATCH] fix history sorting function --- lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index c64922830..8b5ec2d5f 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -584,7 +584,7 @@ class Wallet: def get_tx_history(self): with self.lock: history = self.transactions.items() - history.sort(key = lambda x: self.tx_height.get(x[0],1e12) ) + history.sort(key = lambda x: self.tx_height.get(x[0]) if self.tx_height.get(x[0]) else 1e12) result = [] balance = 0