mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
when using --resolve with local claim list commands, update resolved result with local metadata (such as is_mine and is_mine)
This commit is contained in:
parent
34cbb6fa79
commit
a02b251c9b
2 changed files with 4 additions and 0 deletions
|
@ -739,6 +739,7 @@ class Ledger(metaclass=LedgerRegistry):
|
||||||
for txo in txos:
|
for txo in txos:
|
||||||
resolved = response[txo.permanent_url]
|
resolved = response[txo.permanent_url]
|
||||||
if isinstance(resolved, Output):
|
if isinstance(resolved, Output):
|
||||||
|
resolved.update_annotations(txo)
|
||||||
results.append(resolved)
|
results.append(resolved)
|
||||||
else:
|
else:
|
||||||
if isinstance(resolved, dict) and 'error' in resolved:
|
if isinstance(resolved, dict) and 'error' in resolved:
|
||||||
|
|
|
@ -488,6 +488,9 @@ class ClaimCommands(ClaimTestCase):
|
||||||
self.assertTrue(r[0]['meta']['is_controlling'])
|
self.assertTrue(r[0]['meta']['is_controlling'])
|
||||||
self.assertTrue(r[1]['meta']['is_controlling'])
|
self.assertTrue(r[1]['meta']['is_controlling'])
|
||||||
|
|
||||||
|
# check that metadata is transfered
|
||||||
|
self.assertTrue(r[0]['is_mine'])
|
||||||
|
|
||||||
|
|
||||||
class ChannelCommands(CommandTestCase):
|
class ChannelCommands(CommandTestCase):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue