commit d905f0e55ef95e321f5e986dbdc62be50c629181
parent 436f6a4870df4411c69dbca9f2bdacd5f63ba514
Author: SomberNight <somber.night@protonmail.com>
Date: Fri, 9 Nov 2018 19:15:46 +0100
RBF batching: for now, let user deal with fee problems (honour slider)
Diffstat:
1 file changed, 0 insertions(+), 7 deletions(-)
diff --git a/electrum/wallet.py b/electrum/wallet.py
@@ -572,10 +572,6 @@ class Abstract_Wallet(AddressSynchronizer):
raise Exception("More than one output set to spend max")
i_max = i
- # Avoid index-out-of-range with inputs[0] below
- if not coins:
- raise NotEnoughFunds()
-
if fixed_fee is None and config.fee_per_kb() is None:
raise NoDynamicFeeEstimates()
@@ -621,9 +617,6 @@ class Abstract_Wallet(AddressSynchronizer):
base_tx.deserialize(force_full_parse=True)
base_tx.remove_signatures()
base_tx.add_inputs_info(self)
- base_fee = base_tx.get_fee()
- fee_per_byte = Decimal(base_fee) / base_tx.estimated_size()
- fee_estimator = lambda size: base_fee + round(fee_per_byte * size)
txi = base_tx.inputs()
txo = list(filter(lambda o: not self.is_change(o.address), base_tx.outputs()))
else: