From ce4d734250e786f6144e4d01b31d0600f70f2b31 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 21 Sep 2018 17:48:49 -0300 Subject: [PATCH] adds get_claims_for_name --- lbrynet/wallet/manager.py | 3 +++ lbrynet/wallet/network.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lbrynet/wallet/manager.py b/lbrynet/wallet/manager.py index 5c65cfd4f..739c77474 100644 --- a/lbrynet/wallet/manager.py +++ b/lbrynet/wallet/manager.py @@ -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([]) diff --git a/lbrynet/wallet/network.py b/lbrynet/wallet/network.py index 788a4bfe2..0eadd2ccc 100644 --- a/lbrynet/wallet/network.py +++ b/lbrynet/wallet/network.py @@ -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)