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

[GUI] Improve coin selection logic when creating spend #1508

Conversation

jp1ac4
Copy link
Collaborator

@jp1ac4 jp1ac4 commented Dec 31, 2024

This is to resolve #1326. In case of insufficient funds when creating a spend, the selected coins will be updated to correspond to the missing amount. Previously, no changes were made to selected coins.

Furthermore, if a user selects the max option for a recipient, only owned coins (confirmed or unconfirmed from self) will be considered rather than all coins, since unconfirmed coins that are not from self should only be used if the user has selected them manually.

The coins selected should correspond to the missing amount.
Coin selection considers only those unconfirmed coins from self,
and the same should apply when the user chooses the MAX option
without explicitly selecting coins.

Unconfirmed coins that are not from self should only be included
if the user has selected them explicitly.
@jp1ac4 jp1ac4 force-pushed the gui-spend-improve-insufficient-funds-handling branch from 4a0162d to e8d2fe2 Compare February 6, 2025 14:09
@jp1ac4
Copy link
Collaborator Author

jp1ac4 commented Feb 6, 2025

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.

utACK e8d2fe2

@edouardparis edouardparis merged commit 36f47df into wizardsardine:master Feb 6, 2025
12 checks passed
@jp1ac4 jp1ac4 deleted the gui-spend-improve-insufficient-funds-handling branch February 6, 2025 16:05
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.

Coin selection: no coins selected if the amount to send over balance amount
3 participants