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

Tidy up creation of VSP clients. #2425

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Tidy up creation of VSP clients. #2425

merged 1 commit into from
Sep 19, 2024

Conversation

jholdstock
Copy link
Member

Removing a lot of duplication and boilerplate. Will squash before merge.

@jholdstock jholdstock changed the title Tidy of VSP clients. Tidy up creation of VSP clients. Sep 12, 2024
@jrick
Copy link
Member

jrick commented Sep 12, 2024

the second commit changes the error code for invalid vsp arguments from InvalidArgument to Unknown. intentional?

@jholdstock
Copy link
Member Author

Good catch, not intentional. I'll need to rethink this.

@jholdstock jholdstock marked this pull request as draft September 17, 2024 12:42
@jholdstock
Copy link
Member Author

Marking this PR as draft because it has significant overlap with #2428

- Remove duplicated param validation.
- Fix error messages (some referred to VSP server or ticketbuyer instead
  of VSP client).
@jholdstock
Copy link
Member Author

Rebased on master and ready to review again.

With the changes from #2428, the only errors returned from wallet.VSP are caused by invalid arguments, so I've changed the error code per the observation from @jrick.

@jholdstock jholdstock marked this pull request as ready for review September 19, 2024 17:02
@jrick jrick merged commit e79d2e5 into decred:master Sep 19, 2024
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.

2 participants