From a02b251c9b34fdf2fe8359605da32884d8ae4d03 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sat, 29 Feb 2020 09:42:11 -0500 Subject: [PATCH] when using --resolve with local claim list commands, update resolved result with local metadata (such as is_mine and is_mine) --- lbry/wallet/ledger.py | 1 + tests/integration/blockchain/test_claim_commands.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lbry/wallet/ledger.py b/lbry/wallet/ledger.py index 16868c12b..955d6d507 100644 --- a/lbry/wallet/ledger.py +++ b/lbry/wallet/ledger.py @@ -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: diff --git a/tests/integration/blockchain/test_claim_commands.py b/tests/integration/blockchain/test_claim_commands.py index 96ca3437b..8dcf53dda 100644 --- a/tests/integration/blockchain/test_claim_commands.py +++ b/tests/integration/blockchain/test_claim_commands.py @@ -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):