Hi all.
I would like to ask the opinion of the dev community about utxo selection when sending.
I see a lot of wallets use the following method.
1st priority: block height - ascending
2nd priority: value - ascending
I am wondering what the benefits and drawbacks of this method are.
Also, I am wondering if there are alternative utxo selection methods that have different properties.
Using the kind of defacto standard utxo selection:
So if we had 8 BTC in block 4 and 1.5 AND 0.5 BTC utxos in block 6...
For any value (even 0.5 BTC) up to 8 BTC, it will always use the 8 BTC utxo first.
Then up to 8.5 BTC it will use the 8 BTC input and the 0.5 BTC input.
Then up to 10 BTC it will use all three utxos.
So as an alternative example:
Using the above example, up to 0.5 BTC should use the 0.5 BTC input, from > 0.5 to 1.5 should use only the 1.5 BTC input, and Something > 8.5 and up to 9.5 should only use 8 BTC and the 1.5 BTC utxo.
How would my selection method differ in benefits and demerits?