From c4b15920ff385c0785f93825bac1146958b7c8b8 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 29 Mar 2019 15:33:50 -0400 Subject: [PATCH] dont show supports to foreign address if the inputs are also foreign --- lbrynet/wallet/manager.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/lbrynet/wallet/manager.py b/lbrynet/wallet/manager.py index 1f3dbc940..e6fd8cdd1 100644 --- a/lbrynet/wallet/manager.py +++ b/lbrynet/wallet/manager.py @@ -281,16 +281,17 @@ class LbryWalletManager(BaseWalletManager): 'is_tip': not is_my_inputs, 'nout': txo.position }) - for txo in tx.other_support_outputs: - item['support_info'].append({ - 'address': txo.get_address(account.ledger), - 'balance_delta': dewies_to_lbc(-txo.amount), - 'amount': dewies_to_lbc(txo.amount), - 'claim_id': txo.claim_id, - 'claim_name': txo.claim_name, - 'is_tip': is_my_inputs, - 'nout': txo.position - }) + if is_my_inputs: + for txo in tx.other_support_outputs: + item['support_info'].append({ + 'address': txo.get_address(account.ledger), + 'balance_delta': dewies_to_lbc(-txo.amount), + 'amount': dewies_to_lbc(txo.amount), + 'claim_id': txo.claim_id, + 'claim_name': txo.claim_name, + 'is_tip': is_my_inputs, + 'nout': txo.position + }) for txo in tx.my_abandon_outputs: item['abandon_info'].append({ 'address': txo.get_address(account.ledger),