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

Coin Selection: Only 5 of 7 selected inputs where considered in my transaction #1581

Open
feelancer21 opened this issue Jan 5, 2025 · 1 comment

Comments

@feelancer21
Copy link

I am using Sparrow 2.0.0. I selected 7 UTXOs, but only 5 were included in the final transaction. That was enough to pay the amounts to the recipients. But I wanted to consolidate utxos over the change at the same time. Also, one of the input UTXOs not included was unconfirmed.

@craigraw
Copy link
Collaborator

craigraw commented Jan 7, 2025

Sparrow matches Bitcoin Core's behaviour in that it attempts to satisfy the requirements for the transaction without spending unconfirmed UTXOs, or UTXOs with a low number of confirmations. This reduces the chances that the transaction will later fail to be confirmed itself.

In general coin selection must balance many (often conflicting) goals, not only for the user but also for the health of the network. That said, I'm sympathetic to this use case, and I'd like to hear more opinions on it.

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

No branches or pull requests

2 participants