Merge pull request #791 from lbryio/fix_cache_fail

Fix if statement causing claim with certificate to not get cached, and cause downloading to fail
This commit is contained in:
Umpei Kay Kurokawa 2017-07-20 13:37:29 -04:00 committed by GitHub
commit 32a9e1c4bd

View file

@ -776,14 +776,14 @@ class Wallet(object):
raise UnknownOutpoint(results['outpoint'])
raise Exception(results['error'])
# case where return value is {'certificate:{'txid', 'value',...}}
elif 'certificate' in results:
# case where return value is {'certificate':{'txid', 'value',...},...}
if 'certificate' in results:
results['certificate'] = yield self._decode_and_cache_claim_result(
results['certificate'],
update_caches)
# case where return value is {'claim':{'txid','value',...}}
elif 'claim' in results:
# case where return value is {'claim':{'txid','value',...},...}
if 'claim' in results:
results['claim'] = yield self._decode_and_cache_claim_result(
results['claim'],
update_caches)