-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add missed and expired ticket count to vspinfo response #268
Comments
Agreed this would be nice to have, but its not actually possible with the information exposed by the voting wallets RPC. The best we can do is detect if a ticket is revoked or not. I can't remember the exact reason for this, but it might have been related to the fact that the tickets don't actually belong to the voting wallet - the purchase tx and the voting priv key have been imported from another wallet. Quote from #86
|
Thanks for the info. Just to be clear, is there no way to derive from the blockchain if the ticket is missed or expired? |
The information can be retrieved from the chain. A recent example randomly pulled from dcrdata... Revocation: Linking back to its original ticket (status == missed): I may be incorrect about this, but I don't think SPV wallets can distinguish between missed and expired (although thats irrelevant for vspd, it never uses SPV) |
Oh good to know the missed|expired outcome can be reconstructed. Also I wouldn't assume that all VSP users are SPV. Syncing dcrd on a PC is not that hard, running a reliable voting wallet 24/7 is much harder. |
I mean that vspd voting wallets are never SPV. Not talking about users. |
Seeing as this has been requested multiple times, reopening the issue to either:
|
I've got something in the works to make this possible using v2 gcs filters. Will finalize and open a PR after 1.1.0 is released |
api/v3/vspinfo
only returnsrevoked
ticket count. dcrstakepool'sapi/v2/stats
reportsExpired
,Missed
, andExpired
separately, allowing to determine VSP's miss ratio with "unlucky" expired tickets subtracted. Miss ratio is an important indicator when choosing a VSP.I understand the operators can cheat and patch the code to lie about it, but that would carry its own reputational risks. Adding
missed
andexpired
to the API would be helpful.The text was updated successfully, but these errors were encountered: