commit f0cca253036ef569e44a3075cc5e30f928e32bc2
parent 1161ce919f59110973f59bf23175a19a759cc517
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 25 Nov 2020 09:00:44 +0100
wallet: fix dscancel for "not all inputs ismine" case
fixes #6693
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/wallet.py b/electrum/wallet.py
@@ -1516,7 +1516,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC):
# grab all ismine inputs
inputs = [txin for txin in tx.inputs()
if self.is_mine(self.get_txin_address(txin))]
- value = sum([txin.value_sats() for txin in tx.inputs()])
+ value = sum([txin.value_sats() for txin in inputs])
# figure out output address
old_change_addrs = [o.address for o in tx.outputs() if self.is_mine(o.address)]
out_address = (self.get_single_change_address_for_new_transaction(old_change_addrs)