-
Notifications
You must be signed in to change notification settings - Fork 156
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 expired to getstakeinfo command #360
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some questions.
@@ -2825,6 +2825,7 @@ type StakeInfoData struct { | |||
Voted uint32 | |||
Missed uint32 | |||
Revoked uint32 | |||
Expired uint32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe need something around here too:
https://github.com/alexlyp/btcwallet/blob/c60d4e2133d4f02d581d9903219cdd6356fa928c/wallet/wallet.go#L2856
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
} | ||
|
||
// Check the expired ticket pool for the presense of tickets. | ||
expiredBitSetBStr, err := chainClient.ExistsExpiredTickets(revokeTicketPtrs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then does chainClient.MissedTickets()
no longer include expired? Or does that count need to be decremented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that's a good point, I was using a inclusive/exclusive view of them. All expired are missed, but not all missed are expired.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, missed implies someone wasn't listening and missed their opportunity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya i agree with that. though not sure the current bucketing in dcrd. i believe missed is inclusive of expired, so you'd have to do the changes in wallet. i'm going to keep it for now but i'll open an issue that we can discuss/resolve this in the near future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK |
Is this going in? I'd like it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds yet another dcrd RPC to getstakeinfo that will make this RPC even slower than it already is, but functionally it looks ok.
No description provided.