git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2642fa0
)
fix history sorting function
author
thomasv
<thomasv@gitorious>
Sat, 23 Feb 2013 12:29:03 +0000 (13:29 +0100)
committer
thomasv
<thomasv@gitorious>
Sat, 23 Feb 2013 12:29:03 +0000 (13:29 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
c649228
..
8b5ec2d
100644
(file)
--- 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