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

Record expired/missed tickets as revoked. #301

Merged
merged 1 commit into from Nov 16, 2021

Conversation

jholdstock
Copy link
Member

This is an unfortunate workaround which is necessary because an instance of dcrwallet will only recognise a ticket as revoked if it has done the revoke itself. If another wallet broadcasts the revoke then the ticket will forever be reported as missed/expired. This causes problems for vspd when a wallet outside of the vspd deployment revokes a ticket (eg. a users ticketbuyer wallet).

I'm happy to include this slightly dirty workaround because this should no longer be an issue when the auto-revoke work in DCP-0009 lands.

This is an unfortunate workaround which is necessary because an instance of dcrwallet will only recognise a ticket as revoked if it has done the revoke itself. If another wallet broadcasts the revoke then the ticket will forever be reported as missed/expired. This causes problems for vspd when a wallet outside of the vspd deployment revokes a ticket (eg. a users ticketbuyer wallet).

I'm happy to include this slightly dirty workaround because this should no longer be an issue when the auto-revoke work in DCP-0009 lands.
@chappjc
Copy link
Member

chappjc commented Oct 27, 2021

Related to this? decred/dcrd#2668
decred/dcrwallet#2052

@jholdstock
Copy link
Member Author

Don't believe so, its a separate thing in dcrwallet. I discussed it with @jrick a long time ago (cant remember the details precisely) but my takeaway from the chat was that this is a limitation in dcrwallets capabilities rather than a bug.

@jrick
Copy link
Member

jrick commented Nov 1, 2021

I'm fuzzy on these details as well. It sounds like some sort of tx filtering issue (in RPC mode), where wallets are not informed of the revocation?

I don't see anything wrong with this workaround, but the wallet bug is a little surprising to me.

@jholdstock jholdstock merged commit 43873ec into decred:master Nov 16, 2021
@jholdstock jholdstock deleted the unfortunate branch January 25, 2022 09:21
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

3 participants