fix history sorting function

This commit is contained in:
thomasv 2013-02-23 13:29:03 +01:00
parent 2642fa0f7d
commit 0c5f42cc29
1 changed files with 1 additions and 1 deletions

View File

@ -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