tget_tx_delta: do not return fee if tx is not mine - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 79fbb5edcee2a6bd1225ca568c22b48718ab6636
DIR parent 403fbdd39e133350e833a958450d20f1dc106e47
HTML Author: ThomasV <thomasv@electrum.org>
Date: Thu, 2 Jun 2016 11:15:43 +0200
get_tx_delta: do not return fee if tx is not mine
Diffstat:
M lib/wallet.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/lib/wallet.py b/lib/wallet.py
t@@ -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):