Skip to content

Conversation

@Soupstraw
Copy link
Contributor

@Soupstraw Soupstraw commented Nov 4, 2025

Description

This PR changes how CC votes are counted in the case where there aren't enough CC members and the threshold is zero. According to the discussion in IntersectMBO/cardano-ledger#5170, CC should accept only if both the ccMinSize and threshold are set to zero.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • Any semantic changes to the specifications are documented in CHANGELOG.md
  • Code is formatted according to CONTRIBUTING.md
  • Self-reviewed the diff

@Soupstraw Soupstraw changed the title Only ratify CC if minsize and threshold are both zero Only accept CC if minsize and threshold are both zero Nov 4, 2025
@Soupstraw Soupstraw requested a review from carlostome November 4, 2025 15:42
@Soupstraw Soupstraw marked this pull request as ready for review November 4, 2025 15:42
@carlostome
Copy link
Collaborator

carlostome commented Nov 4, 2025

The cardano-ledger test from IntersectMBO/cardano-ledger#5184 is still failing after these changes.

@Soupstraw Soupstraw marked this pull request as draft November 5, 2025 10:22
@Soupstraw Soupstraw marked this pull request as ready for review November 5, 2025 12:17
@Soupstraw
Copy link
Contributor Author

Turns out there was another bug as well. The ccMinSize was checked against all the CC members, not just the active ones.

Copy link
Collaborator

@carlostome carlostome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

To record, the conformance test from IntersectMBO/cardano-ledger#5184 now succeeds.

@Soupstraw Soupstraw force-pushed the jj/cc-vote-minsize-fix branch 2 times, most recently from 0142f14 to 0f69c7f Compare November 10, 2025 16:53
Copy link
Member

@williamdemeo williamdemeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work Joosep! There may be some minor fixes needed (e.g., for the mkdocs site) after merging master into this branch, but nothing major. (In fact, it will likely be fixed once I merge the "nav fix" PR that I'm about to create, so you won't have to worry about it.)

@carlostome carlostome force-pushed the jj/cc-vote-minsize-fix branch 2 times, most recently from 0f69c7f to 0f0395d Compare November 11, 2025 09:18
@carlostome carlostome force-pushed the jj/cc-vote-minsize-fix branch from 0f0395d to 212b889 Compare November 11, 2025 09:53
@carlostome carlostome merged commit 01b5bae into master Nov 11, 2025
2 of 3 checks passed
@carlostome carlostome deleted the jj/cc-vote-minsize-fix branch November 11, 2025 09:55
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.

3 participants