-
Notifications
You must be signed in to change notification settings - Fork 13
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
Change the way SPO votes are counted #594
base: master
Are you sure you want to change the base?
Conversation
This closes issue #578.
(It's unclear to me whether this is the intent of the WIP section of the CHANGELOG, or whether I should have left this issue in the 0.9 section.)
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.
Sorry, what actually needs to be done here is a bit more complicated. DState.voteDelegs
needs to be available to actualSPOVotes
. Then, if you have a credVoter SPO c
, you need to lookup c
in voteDelegs
and the result of that lookup is the default vote.
@WhatisRT @Lucsanszky I've revised the SPO default vote function. I think it's correct now, but let me know if you notice anything wrong with it. Thanks! |
@WhatisRT @williamdemeo conformance is still failing for me. I had a better look at the ledger implementation (here's my PR which updates the SPO vote counting: IntersectMBO/cardano-ledger#4659) and the spec. To me it seems like that they indeed don't really match. In the implementation, we check if the SPO's reward address is delegated to an
|
@Lucsanszky Your description seems reasonable to me. I'll go ahead and try to change the Agda code to match your understanding of how the policy should be implemented. I'll let you know when the changes are done. |
@Lucsanszky I believe |
At a first glance, this looks good! Unfortunately, conformance is still failing but that could be because of something else (and I have an idea why). Anyways, I'll wait for @WhatisRT's approval. Thanks! |
Okay, conformance passes. :) I opened a PR which also adds your changes to the conformance files, feel free to cherry pick the commits. Also, I took the liberty to slightly change your specification and opted not to pass in the complete |
Looks good. Thanks @Lucsanszky! I've merged your mods into this PR, so you can close your PR. |
Description
This closes issue #578.
Checklist
CHANGELOG.md