-
Notifications
You must be signed in to change notification settings - Fork 20
Refactor accepted by CC #992
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
Conversation
f5e7854 to
9f7ceea
Compare
9f7ceea to
4c1b265
Compare
7fa8771 to
246ae4a
Compare
WhatisRT
left a comment
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 left some comments, but overall LGTM
| accepted = (acceptedStake /₀ totalStake) ≥ t | ||
| × (sizeActiveCC ≥ ccMinSize ⊎ (Is-nothing mT × ccMinSize ≡ 0)) | ||
| accepted = if mT then (λ {t} → sizeActiveCC ≥ ccMinSize × (acceptedStake /₀ totalStake) ≥ t) | ||
| else ⊤ |
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.
Since we're showing this in the actual documentation, I wonder if it'd be a good idea to provide an alias called True for this. And similarly for False.
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.
True and False are already used in the spec as proofs of Decidable predicates. I'll open an issue about this so we don't forget.
Description
Currently
acceptedByCCrejects a NoConfidence proposal if the committee is empty but theminSizeis not 0.I'm not sure if this is the intended behaviour but I suppose no since CC has no bearing on NoConfidence motions.
This is related to #209 and (likely the cause of) IntersectMBO/cardano-ledger#5418
Pinging @Soupstraw and @WhatisRT
EDIT:
This PR refactors
acceptedByCCto simplify the logic.Checklist
CHANGELOG.md