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:
commit
32a9e1c4bd
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue