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: Rewrite client for persistent bg processing #1956

Merged
merged 1 commit into from
Jan 12, 2021
Merged

Conversation

jrick
Copy link
Member

@jrick jrick commented Jan 4, 2021

This change involves almost a complete rewrite of the vsp client
package, removing the syncing goroutines and instead placing methods
of a feePayment structure on a timer at randomized intervals to
perform each step with the VSP.

One design goal of this change is to ensure that all interactive vsp
client usage is performed on a feePayment structure that is also being
background processed. This allows fee payment processing to continue
even if the VSP client was temporarily created and not actively
syncing new tickets.

Another separate goal of this rewrite is to allow the client to query
the VSP for tickets that have been processed by the VSP, but are not
recorded as such in the wallet's database. This will be used to
recover fee payment information for tickets after seed restores.

Copy link
Member

@alexlyp alexlyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

This change involves almost a complete rewrite of the vsp client
package, removing the syncing goroutines and instead placing methods
of a feePayment structure on a timer at randomized intervals to
perform each step with the VSP.

One design goal of this change is to ensure that all interactive vsp
client usage is performed on a feePayment structure that is also being
background processed.  This allows fee payment processing to continue
even if the VSP client was temporarily created and not actively
syncing new tickets.

Another separate goal of this rewrite is to allow the client to query
the VSP for tickets that have been processed by the VSP, but are not
recorded as such in the wallet's database.  This will be used to
recover fee payment information for tickets after seed restores.
@jrick jrick changed the title [wip] vsp: Rewrite client for persistent bg processing vsp: Rewrite client for persistent bg processing Jan 12, 2021
@jrick jrick merged commit 595383c into decred:master Jan 12, 2021
@jrick jrick deleted the vsp branch January 12, 2021 21:20
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