You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wallet, coin selection: config option to prioritize 'no change' when possible #23372
Bitcoin Core has 3 algorithms for coin selection. All of them are executed and then, the result with the 'best' waste metric is chosen. Thinking about privacy, the user could prefer a solution that doesn't generate change (of course, users that want privacy usually prefer choose the coins manually). Anyway, what if the user could choose to prioritize the solution given by BnB? So, in the case of BnB finds a solution, the other algorithms would not need to be executed.
changed the title [-]wallet: config option to prioritize BnB when possible[/-][+]wallet: config option to prioritize 'no change' when possible[/+]on Oct 27, 2021
How about having a config option to decide coin selection algorithm or priority?
Priority. I used BnB as example because its solution doesn't generate change. But I think we can use the priority since the algorithms can change and most user don't know their name.
@prayank23 We have 3 algorithms in Bitcoin Core, the waste metric decides what solution should be used. So, BnB can find a solution with 10 inputs and SRD finds one with 3 inputs but generating change, if the solution provided by SRD is more economic than the BnB one, it will be choose. However, I may not want the most economic, what if I want the solution that doesn't generate change (for privacy reason)? I don't think the users should know how the algorithms work, but it would be great if he could choose a strategy. Of course, those who wanna 100% privacy will choose the coins manually, but in some cases not everyone has this possibility.
Thanks for posting here that other issue, I am reading it..
changed the title [-]wallet: config option to prioritize 'no change' when possible[/-][+]wallet, coin selection: config option to prioritize 'no change' when possible[/+]on Nov 2, 2021
Activity
[-]wallet: config option to prioritize BnB when possible[/-][+]wallet: config option to prioritize 'no change' when possible[/+]brunoerg commentedon Oct 31, 2021
Priority. I used BnB as example because its solution doesn't generate change. But I think we can use the priority since the algorithms can change and most user don't know their name.
What do you think, @prayank23 ?
brunoerg commentedon Oct 31, 2021
@prayank23 We have 3 algorithms in Bitcoin Core, the waste metric decides what solution should be used. So, BnB can find a solution with 10 inputs and SRD finds one with 3 inputs but generating change, if the solution provided by SRD is more economic than the BnB one, it will be choose. However, I may not want the most economic, what if I want the solution that doesn't generate change (for privacy reason)? I don't think the users should know how the algorithms work, but it would be great if he could choose a strategy. Of course, those who wanna 100% privacy will choose the coins manually, but in some cases not everyone has this possibility.
Thanks for posting here that other issue, I am reading it..
[-]wallet: config option to prioritize 'no change' when possible[/-][+]wallet, coin selection: config option to prioritize 'no change' when possible[/+]brunoerg commentedon Nov 10, 2021
#23475
EmmanuelTheCoder commentedon Nov 11, 2021
I agree that the user may not have to know how the algorithm works. Users should also be given coin selection liberty.
Aladin-dev commentedon Nov 24, 2021
Having a configuration option for coin selection by adding the specific algorithm to the wallet