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 UnknownOutpoint(results['outpoint'])
raise Exception(results['error']) raise Exception(results['error'])
# case where return value is {'certificate:{'txid', 'value',...}} # case where return value is {'certificate':{'txid', 'value',...},...}
elif 'certificate' in results: if 'certificate' in results:
results['certificate'] = yield self._decode_and_cache_claim_result( results['certificate'] = yield self._decode_and_cache_claim_result(
results['certificate'], results['certificate'],
update_caches) update_caches)
# case where return value is {'claim':{'txid','value',...}} # case where return value is {'claim':{'txid','value',...},...}
elif 'claim' in results: if 'claim' in results:
results['claim'] = yield self._decode_and_cache_claim_result( results['claim'] = yield self._decode_and_cache_claim_result(
results['claim'], results['claim'],
update_caches) update_caches)