Skip to content

wallet, coin selection: config option to prioritize 'no change' when possible #23372

Closed

Description

@brunoerg

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.

Activity

  1. changed the title [-]wallet: config option to prioritize BnB when possible[/-] [+]wallet: config option to prioritize 'no change' when possible[/+] on Oct 27, 2021
  2. deleted a comment from on Oct 28, 2021
  3. brunoerg commented on Oct 31, 2021

    @brunoerg
    ContributorAuthor

    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.

    What do you think, @prayank23 ?

  4. brunoerg commented on Oct 31, 2021

    @brunoerg
    ContributorAuthor

    @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..

  5. 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
  6. brunoerg commented on Nov 10, 2021

    @brunoerg
    ContributorAuthor
  7. EmmanuelTheCoder commented on Nov 11, 2021

    @EmmanuelTheCoder

    I agree that the user may not have to know how the algorithm works. Users should also be given coin selection liberty.

  8. Aladin-dev commented on Nov 24, 2021

    @Aladin-dev

    Having a configuration option for coin selection by adding the specific algorithm to the wallet

  9. locked and limited conversation to collaborators on May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions