From cc5908b3090801b1eebbe4d7b5c3a5ae8345c4d3 Mon Sep 17 00:00:00 2001 From: hz <13457698+hozzjss@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:28:02 +0200 Subject: [PATCH] fix: fee calculation in for btc txs closes #4455 --- .../transactions/bitcoin/coinselect/local-coin-selection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/common/transactions/bitcoin/coinselect/local-coin-selection.ts b/src/app/common/transactions/bitcoin/coinselect/local-coin-selection.ts index 46ae4397331..e06fdae6d67 100644 --- a/src/app/common/transactions/bitcoin/coinselect/local-coin-selection.ts +++ b/src/app/common/transactions/bitcoin/coinselect/local-coin-selection.ts @@ -69,7 +69,7 @@ export function determineUtxosForSpend({ sizeInfo = txSizer.calcTxSize({ // Only p2wpkh is supported by the wallet input_script: 'p2wpkh', - input_count: neededUtxos.length, + input_count: neededUtxos.length + 1, // From the address of the recipient, we infer the output type [addressInfo.type + '_output_count']: 2, });