From aab14f65032ec80f16b97a8e54229598b98c9122 Mon Sep 17 00:00:00 2001 From: undeath Date: Wed, 16 Jun 2021 16:12:14 +0200 Subject: [PATCH] fix taker fee estimation on sweep after maker responses --- jmclient/jmclient/taker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/jmclient/taker.py b/jmclient/jmclient/taker.py index 19e9240..515a653 100644 --- a/jmclient/jmclient/taker.py +++ b/jmclient/jmclient/taker.py @@ -475,7 +475,7 @@ class Taker(object): # this is done with using the same estimate fee function and comparing # the totals; this ratio will correspond to the ratio of the feerates. num_ins = len([u for u in sum(self.utxos.values(), [])]) - num_outs = len(self.outputs) + 2 + num_outs = len(self.outputs) + 1 new_total_fee = estimate_tx_fee(num_ins, num_outs, txtype=self.wallet_service.get_txtype()) feeratio = self.total_txfee/new_total_fee