Skip to content

Add CoinSelector::clear_selection - #89

Merged
evanlinjin merged 1 commit into
bitcoindevkit:masterfrom
LLFourn:clear-selection
Dec 1, 2026
Merged

evanlinjin merged 1 commit into
bitcoindevkit:masterfrom
LLFourn:clear-selection

Conversation

@LLFourn

@LLFourn LLFourn commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

After a first selection pass, rerunning selection under a new constraint needs an empty selection with the same candidate order and bans. One example is capping the input count by banning all but the largest n candidates. Today that means deselecting one index at a time or cloning a pristine selector. clear_selection deselects every candidate and keeps the bans and the order.

@evanlinjin evanlinjin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 63bdfaf

@evanlinjin evanlinjin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 476d70b

@evanlinjin
evanlinjin merged commit 6a13433 into bitcoindevkit:master Dec 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants