adds get_claims_for_name

This commit is contained in:
Victor Shyba 2018-09-21 17:48:49 -03:00 committed by Lex Berezhny
parent 04e0933d36
commit ce4d734250
2 changed files with 6 additions and 0 deletions

View file

@ -195,6 +195,9 @@ class LbryWalletManager(BaseWalletManager):
(value for value in results.values() if 'error' not in value))
defer.returnValue(results)
def get_claims_for_name(self, name: str):
return self.ledger.network.get_claims_for_name(name)
def get_name_claims(self):
return defer.succeed([])

View file

@ -17,3 +17,6 @@ class Network(BaseNetwork):
def get_claims_in_tx(self, txid):
return self.rpc('blockchain.claimtrie.getclaimsintx', txid)
def get_claims_for_name(self, name):
return self.rpc('blockchain.claimtrie.getclaimsforname', name)