forked from LBRYCommunity/lbry-sdk
fix claim not being saved to the db
This commit is contained in:
parent
f0e17cff9a
commit
f125468ebf
1 changed files with 5 additions and 2 deletions
|
@ -350,9 +350,12 @@ class StreamManager:
|
||||||
raise ResolveError("cannot download a channel claim, specify a /path")
|
raise ResolveError("cannot download a channel claim, specify a /path")
|
||||||
|
|
||||||
# resolve the claim
|
# resolve the claim
|
||||||
resolved = (await self.wallet.ledger.resolve(0, 10, uri)).get(uri, {})
|
resolved_result = await self.wallet.ledger.resolve(0, 10, uri)
|
||||||
|
await self.storage.save_claims_for_resolve([
|
||||||
|
value for value in resolved_result.values() if 'error' not in value
|
||||||
|
])
|
||||||
|
resolved = resolved_result.get(uri, {})
|
||||||
resolved = resolved if 'value' in resolved else resolved.get('claim')
|
resolved = resolved if 'value' in resolved else resolved.get('claim')
|
||||||
|
|
||||||
if not resolved:
|
if not resolved:
|
||||||
raise ResolveError(f"Failed to resolve stream at '{uri}'")
|
raise ResolveError(f"Failed to resolve stream at '{uri}'")
|
||||||
if 'error' in resolved:
|
if 'error' in resolved:
|
||||||
|
|
Loading…
Reference in a new issue