From 21c1786dc625e1a6da14017405fe6b3b3f4d0c3e Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Fri, 23 Jun 2017 12:03:01 -0400 Subject: [PATCH] rename Wallet.get_claim() to get_claim_by_claim_id() --- lbrynet/core/Wallet.py | 2 +- lbrynet/daemon/Daemon.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index 25f88f608..93e3d1f4c 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -693,7 +693,7 @@ class Wallet(object): defer.returnValue(results) @defer.inlineCallbacks - def get_claim(self, claim_id, check_expire=True): + def get_claim_by_claim_id(self, claim_id, check_expire=True): cached_claim = yield self.get_cached_claim(claim_id, check_expire) if cached_claim: result = cached_claim diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index be1841a25..0037365a1 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -836,7 +836,8 @@ class Daemon(AuthJSONRPCServer): size = None message = None - claim = yield self.session.wallet.get_claim(lbry_file.claim_id, check_expire=False) + claim = yield self.session.wallet.get_claim_by_claim_id(lbry_file.claim_id, + check_expire=False) if claim and 'value' in claim: metadata = claim['value'] @@ -1343,7 +1344,7 @@ class Daemon(AuthJSONRPCServer): """ try: if claim_id: - claim_results = yield self.session.wallet.get_claim(claim_id) + claim_results = yield self.session.wallet.get_claim_by_claim_id(claim_id) elif txid and nout is not None: outpoint = ClaimOutpoint(txid, nout) claim_results = yield self.session.wallet.get_claim_by_outpoint(outpoint)