Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Coin Selection API #460

Open
DanGould opened this issue Jan 3, 2025 · 0 comments
Open

Improve Coin Selection API #460

DanGould opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@DanGould
Copy link
Contributor

DanGould commented Jan 3, 2025

Right now our only coin selection is try_preserving_privacy, which is supposed to attempt to avoid UIH and if not use the first output. In practice, the select_first_candidate only runs on sweeps, since avoid_uihthrows an error if there are 2 outputs in the original psbt.

In practice, sometimes you want to select the first candidate no matter once since you have a discounted opportunity to conolidate a receiver input.

@SatoshiPortal suggested a possible "consolidation" selection algorithm that tried to optimize for consolidation that could be enabled when fees were below a certain threshold. We can support something like this.

I think this is something @0xBEEFCAF3 is interested in

@DanGould DanGould added the enhancement New feature or request label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant