coinselect icon indicating copy to clipboard operation
coinselect copied to clipboard

CoinSelect using multiple small UTXOs instead of one big

Open ademcan opened this issue 4 years ago • 3 comments

Hi team, thanks for the great work. I realized that sometimes coinselect (Blackjack, with Accumulative fallback) is using multiple smaller UTXOs rather than one big, and therefore ends up with higher fees when sending BTC. Isn't it the idea of the default module to select the biggest UTXO first? Am I maybe using a wrong one?

ademcan avatar Jul 12 '21 09:07 ademcan

Can you provide an example?

Since this library doesn't look at txid info etc. you can strip that data from the test data set so we can try it and see what's going on.

junderw avatar Jul 14 '21 01:07 junderw

Can you provide an example?

Since this library doesn't look at txid info etc. you can strip that data from the test data set so we can try it and see what's going on.

Hi team, thanks for the great work. I realized that sometimes coinselect (Blackjack, with Accumulative fallback) is using multiple smaller UTXOs rather than one big, and therefore ends up with higher fees when sending BTC. Isn't it the idea of the default module to select the biggest UTXO first? Am I maybe using a wrong one?

Taweesakpintakam7m1 avatar Oct 25 '21 13:10 Taweesakpintakam7m1

If blackjack is successful it will often result in higher fees. Blackjack isn't optimizing for low fees but for 0 change (ultimately reducing the amount of dust or small value UTXOs that will remain after the transaction)

spencerstock avatar Nov 29 '23 19:11 spencerstock