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

commands: use unconfirmed coins from self for coin selection #1499

Conversation

jp1ac4
Copy link
Collaborator

@jp1ac4 jp1ac4 commented Dec 16, 2024

This is to resolve #1484.

We previously used unconfirmed change for coin selection as a best-guess way of identifying those unconfirmed coins from self, but now we have the is_from_self field we can use it directly and be sure we only select coins that are fully under our control.

@jp1ac4 jp1ac4 self-assigned this Dec 16, 2024
@jp1ac4 jp1ac4 added this to the v9 Liana - Change detection milestone Dec 16, 2024
@edouardparis
Copy link
Member

@jp1ac4
Copy link
Collaborator Author

jp1ac4 commented Dec 16, 2024

Ah, that's been changed as part of #1498. But I don't think that change is required in this PR as the logic for specifying candidates for selection is in the remote backend API handler so will need to be changed there separately.

@edouardparis
Copy link
Member

Ah right thanks, I merged it, can you rebase ?

We previously used unconfirmed change as a best-guess way of
identifying those coins from self, but now we have the
`is_from_self` field we can use it directly and be sure we only
select coins that are fully under our control.
@jp1ac4 jp1ac4 force-pushed the coin-selection-use-unconfirmed-from-self branch from ba1f3c4 to 091d772 Compare December 16, 2024 10:25
@jp1ac4
Copy link
Collaborator Author

jp1ac4 commented Dec 16, 2024

Rebased on master.

Copy link
Member

@edouardparis edouardparis left a comment

Choose a reason for hiding this comment

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

Self-ACK 091d772

@edouardparis edouardparis merged commit d9e984a into wizardsardine:master Dec 16, 2024
24 checks passed
@jp1ac4 jp1ac4 deleted the coin-selection-use-unconfirmed-from-self branch December 17, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

spend: include only those unconfirmed coins from self for coin selection
2 participants