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:
Lex Berezhny 2020-02-29 09:42:11 -05:00
parent 34cbb6fa79
commit a02b251c9b
2 changed files with 4 additions and 0 deletions

View file

@ -739,6 +739,7 @@ class Ledger(metaclass=LedgerRegistry):
for txo in txos:
resolved = response[txo.permanent_url]
if isinstance(resolved, Output):
resolved.update_annotations(txo)
results.append(resolved)
else:
if isinstance(resolved, dict) and 'error' in resolved:

View file

@ -488,6 +488,9 @@ class ClaimCommands(ClaimTestCase):
self.assertTrue(r[0]['meta']['is_controlling'])
self.assertTrue(r[1]['meta']['is_controlling'])
# check that metadata is transfered
self.assertTrue(r[0]['is_mine'])
class ChannelCommands(CommandTestCase):