Post
Topic
Board Services
Re: Can anyone help get this transaction confirmation?
by
hosseinimr93
on 06/05/2022, 08:57:02 UTC
I don't understand why you want to reduce it and you're dividing f*(SA+SB) - SA*fA by the length of the new transaction.
Note that fB is the fee rate you should use for the new transaction. It's not the absolute fee.
As you truly mentioned, the fee required to be paid for the new transaction is f*(SA+SB) - SA*fA.

In your new transaction, you should set the the fee rate to (f*(SA+SB) - SA*fA) / SB, so the absolute fee paid for it is f*(SA+SB) - SA*fA.

Let's say the fee required to be paid for the new transaction is 1000 satoshi and its size is 200 vbyte. I should set the fee rate to 1000/200 = 5 sat/vbyte.