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: Don't increment change index when running (auto) coin selection #840

Closed
jp1ac4 opened this issue Nov 27, 2023 · 2 comments
Closed

gui: Don't increment change index when running (auto) coin selection #840

jp1ac4 opened this issue Nov 27, 2023 · 2 comments
Labels
Enhancement Improving an existing functionality Good first issue Good for newcomers GUI gui related

Comments

@jp1ac4
Copy link
Collaborator

jp1ac4 commented Nov 27, 2023

This relates to #563 (comment).

Currently, when a user is creating a new spend, the GUI may call create_spend several times in order to select coins automatically each time the user edits the input values. Each time create_spend is called, the next change index in the DB is incremented.

Following #821, we can now fix the change address to use when calling create_spend. We could use this to prevent the change index incrementing on these intermediate calls to create_spend. We could either pass an arbitrary change address, e.g. for index 0, or we could get the next change address from the DB and use this.

@darosior
Copy link
Member

I think this was fixed by #863. @jp1ac4 can you confirm and close this issue if so?

@jp1ac4
Copy link
Collaborator Author

jp1ac4 commented Mar 12, 2024

Yep, this has been fixed.

For future reference, it should be noted that once a draft PSBT has been generated (so after clicking Next on the Send page), the change index will be incremented if this draft PSBT has a change output (see also #963).

@jp1ac4 jp1ac4 closed this as completed Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improving an existing functionality Good first issue Good for newcomers GUI gui related
Projects
None yet
Development

No branches or pull requests

2 participants