UTXO holds a binary hash

Fixes #371
This commit is contained in:
Neil Booth 2018-02-14 22:39:53 +08:00
parent d075ebba86
commit 790385cf7b

View File

@ -329,7 +329,9 @@ class MemPool(util.LoggedClass):
txout_pairs = item[1]
for pos, (hX, value) in enumerate(txout_pairs):
if hX == hashX:
utxos.append(UTXO(-1, pos, hex_hash, 0, value))
# Unfortunately UTXO holds a binary hash
utxos.append(UTXO(-1, pos, hex_str_to_hash(hex_hash),
0, value))
return utxos
async def potential_spends(self, hashX):