fix lookup helper by not calling hexlify twice

This commit is contained in:
Victor Shyba 2018-07-15 21:53:18 -03:00 committed by Jack Robison
parent 44bd0ae847
commit 5ec696fbfd
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -22,7 +22,7 @@ def get_certificate_lookup(tx_or_hash, nout):
if isinstance(tx_or_hash, Transaction):
return '{}:{}'.format(tx_or_hash.id, nout)
else:
return '{}:{}'.format(hexlify(tx_or_hash[::-1]).decode(), nout)
return '{}:{}'.format(tx_or_hash, nout)
class Account(BaseAccount):