forked from LBRYCommunity/lbry-sdk
convert claim_id to channel_hash
This commit is contained in:
parent
23723f8041
commit
70d9f4cf79
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue