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

vsp: Use client provided by vspd package. #2213

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

jholdstock
Copy link
Member

The client provided by the vspd package is based on the one which this PR removes from dcrwallet, so there should be no significant difference in functionality.

Using the vspd implementation removes a lot of hard-coded duplication which is liable to fall out of sync, e.g. error codes, req/resp types, URLs.

This currently leaves no way for dcrwallet to record request/response bytes as described in the original vspd spec, however decred/vspd#364 has been opened to implement that in future.

I backported this to 1.7 and used it with autobuyer for a couple of weeks on https://testnet-vsp.jholdstock.uk - several thousand tickets processed and no issues observed.

internal/vsp/feepayment.go Show resolved Hide resolved
internal/vsp/feepayment.go Outdated Show resolved Hide resolved
The client provided by the vspd package is based on the one which this PR
removes from dcrwallet, so there should be no significant difference in
functionality.

Using the vspd implementation removes a lot of hard-coded duplication which is
liable to fall out of sync, e.g. error codes, req/resp types, URLs.
@jrick jrick merged commit 0aeb02c into decred:master Mar 16, 2023
@xaur xaur mentioned this pull request Apr 6, 2023
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