Closed theanmolsharma closed 7 months ago
In CoinSelector. select(), we should check if the change amount is greater than the cost of change. If not so, we should drop it to fee.
CoinSelector. select()
LONG_TERM_FEERATE = 5 # in sats/vB constOfChangeOutput = outputSize * currentFeerate; constOfSpendingChange = inputSizeOfChangeUTXO * LONG_TERM_FEERATE; costOfChange = constOfChangeOutput + constOfSpendingChange
We should close this.
In
CoinSelector. select()
, we should check if the change amount is greater than the cost of change. If not so, we should drop it to fee.