electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 79fbb5edcee2a6bd1225ca568c22b48718ab6636
parent 403fbdd39e133350e833a958450d20f1dc106e47
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:
Mlib/wallet.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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):