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

multi: Select unmanaged tickets outside VSP client #2257

Merged
merged 2 commits into from Jun 30, 2023

Conversation

jholdstock
Copy link
Member

Move the logic to select unmanaged tickets from the wallet database up into the wallet code. No need for this to be done in the VSP client.

This also saves on database access by running ForUnspentUnexpiredTickets only once.

Move the logic to select unmanaged tickets from the wallet database up into the
wallet code. No need for this to be done in the VSP client.

This also saves on database access by running ForUnspentUnexpiredTickets only
once.
@jrick
Copy link
Member

jrick commented Jun 30, 2023

i realize that the grpc server is the only caller of this method right now, but will that always be the case?

if we are going to move this logic around, i feel it makes more sense to move the unmanaged tickets selection code to a new method in the wallet package, so that e.g. the jsonrpc server could also call it.

@jrick jrick merged commit bfed19f into decred:master Jun 30, 2023
2 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.

None yet

2 participants