1
0

fix transaction order in history

This commit is contained in:
ecdsa
2013-03-23 18:10:09 +01:00
parent a5168cc09f
commit cac030e2ee
2 changed files with 7 additions and 6 deletions

View File

@@ -644,7 +644,7 @@ class Wallet:
def get_tx_history(self):
with self.lock:
history = self.transactions.items()
history.sort(key = lambda x: self.verifier.get_height(x[0]) if self.verifier.get_height(x[0]) else 1e12)
history.sort(key = lambda x: self.verifier.verified_tx.get(x[0]) if self.verifier.verified_tx.get(x[0]) else (1e12,0,0))
result = []
balance = 0