From 79fbb5edcee2a6bd1225ca568c22b48718ab6636 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 2 Jun 2016 11:15:43 +0200 Subject: [PATCH] get_tx_delta: do not return fee if tx is not mine --- lib/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index 265aa33d..3c2b0bd0 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -594,10 +594,11 @@ class Abstract_Wallet(PrintError): if is_partial: # some inputs are mine, but not all fee = None - is_mine = v < 0 else: # all inputs are mine fee = v_out - v_in + if not is_mine: + fee = None return is_relevant, is_mine, v, fee def get_addr_io(self, address):