convert claim_id to channel_hash

This commit is contained in:
Lex Berezhny 2020-08-10 18:53:00 -04:00
parent 23723f8041
commit 70d9f4cf79

View file

@ -43,6 +43,8 @@ def search_supports(**constraints) -> Tuple[List[Output], Optional[int]]:
total = None total = None
if constraints.pop('include_total', False): if constraints.pop('include_total', False):
total = search_support_count(**constraints) total = search_support_count(**constraints)
if 'claim_id' in constraints:
constraints['claim_hash'] = unhexlify(constraints.pop('claim_id'))[::-1]
rows = context().fetchall(select_supports(**constraints)) rows = context().fetchall(select_supports(**constraints))
txos = rows_to_txos(rows, include_tx=False) txos = rows_to_txos(rows, include_tx=False)
return txos, total return txos, total