forked from LBRYCommunity/lbry-sdk
dont show supports to foreign address if the inputs are also foreign
This commit is contained in:
parent
2a55e583e7
commit
c4b15920ff
1 changed files with 11 additions and 10 deletions
|
@ -281,16 +281,17 @@ class LbryWalletManager(BaseWalletManager):
|
||||||
'is_tip': not is_my_inputs,
|
'is_tip': not is_my_inputs,
|
||||||
'nout': txo.position
|
'nout': txo.position
|
||||||
})
|
})
|
||||||
for txo in tx.other_support_outputs:
|
if is_my_inputs:
|
||||||
item['support_info'].append({
|
for txo in tx.other_support_outputs:
|
||||||
'address': txo.get_address(account.ledger),
|
item['support_info'].append({
|
||||||
'balance_delta': dewies_to_lbc(-txo.amount),
|
'address': txo.get_address(account.ledger),
|
||||||
'amount': dewies_to_lbc(txo.amount),
|
'balance_delta': dewies_to_lbc(-txo.amount),
|
||||||
'claim_id': txo.claim_id,
|
'amount': dewies_to_lbc(txo.amount),
|
||||||
'claim_name': txo.claim_name,
|
'claim_id': txo.claim_id,
|
||||||
'is_tip': is_my_inputs,
|
'claim_name': txo.claim_name,
|
||||||
'nout': txo.position
|
'is_tip': is_my_inputs,
|
||||||
})
|
'nout': txo.position
|
||||||
|
})
|
||||||
for txo in tx.my_abandon_outputs:
|
for txo in tx.my_abandon_outputs:
|
||||||
item['abandon_info'].append({
|
item['abandon_info'].append({
|
||||||
'address': txo.get_address(account.ledger),
|
'address': txo.get_address(account.ledger),
|
||||||
|
|
Loading…
Reference in a new issue