wallet: skip history sort when verifier is not set
This commit is contained in:
@@ -748,7 +748,8 @@ class Abstract_Wallet(object):
|
|||||||
#balance += value
|
#balance += value
|
||||||
conf, timestamp = self.verifier.get_confirmations(tx_hash) if self.verifier else (None, None)
|
conf, timestamp = self.verifier.get_confirmations(tx_hash) if self.verifier else (None, None)
|
||||||
history.append( (tx_hash, conf, value, timestamp) )
|
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)
|
c, u = self.get_balance(domain)
|
||||||
balance = c + u
|
balance = c + u
|
||||||
|
|||||||
Reference in New Issue
Block a user