forked from LBRYCommunity/lbry-sdk
resolve claims on claim_list (#1483)
This commit is contained in:
parent
b3ee29b66d
commit
a60a921706
1 changed files with 6 additions and 2 deletions
|
@ -279,8 +279,12 @@ class LbryWalletManager(BaseWalletManager):
|
|||
).asFuture(asyncio.get_event_loop())
|
||||
return results
|
||||
|
||||
def get_claims_for_name(self, name: str):
|
||||
return self.ledger.network.get_claims_for_name(name)
|
||||
async def get_claims_for_name(self, name: str):
|
||||
response = await self.ledger.network.get_claims_for_name(name)
|
||||
if 'claims' in response:
|
||||
to_resolve = [(claim['name'] + '#' + claim['claim_id']) for claim in response['claims']]
|
||||
response['claims'] = [resolution['claim'] for resolution in (await self.resolve(*to_resolve)).values()]
|
||||
return response
|
||||
|
||||
async def address_is_mine(self, unknown_address, account):
|
||||
match = await self.ledger.db.get_address(address=unknown_address, account=account)
|
||||
|
|
Loading…
Reference in a new issue