1
0

wallet: skip history sort when verifier is not set

This commit is contained in:
Roman Zeyde
2015-03-31 09:24:36 +03:00
parent da502076bd
commit a7440fc89c

View File

@@ -748,7 +748,8 @@ class Abstract_Wallet(object):
#balance += value
conf, timestamp = self.verifier.get_confirmations(tx_hash) if self.verifier else (None, None)
history.append( (tx_hash, conf, value, timestamp) )
history.sort(key = lambda x: self.verifier.get_txpos(x[0]))
if self.verifier:
history.sort(key = lambda x: self.verifier.get_txpos(x[0]))
c, u = self.get_balance(domain)
balance = c + u