- Notifications
You must be signed in to change notification settings - Fork 50
feat(KC): allow to pass commit period quicker #2196
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
WalkthroughThe Commit period guard in Changes
Sequence DiagramsequenceDiagram participant Test participant KlerosCore rect rgb(200, 220, 255) Note over Test,KlerosCore: Before all commits cast Test->>KlerosCore: passPeriod(disputeID) KlerosCore->>KlerosCore: Check: time passed ✓ KlerosCore->>KlerosCore: Check: not all commits cast ✓ KlerosCore->>Test: revert CommitPeriodNotPassed() end rect rgb(200, 255, 200) Note over Test,KlerosCore: After all commits cast Test->>KlerosCore: passPeriod(disputeID) KlerosCore->>KlerosCore: Check: time passed ✓ KlerosCore->>KlerosCore: Check: not all commits cast ✗ KlerosCore->>Test: success (advance to voting) end Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-09-30T17:18:12.895ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deploy Preview for kleros-v2-testnet ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for kleros-v2-neo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
❌ Deploy Preview for kleros-v2-testnet-devtools failed. Why did it fail? →
|



PR-Codex overview
This PR focuses on enhancing the period transition logic in the
KlerosCorecontract to prevent switching to the voting period until all commits are cast. It also updates the test cases to reflect this new logic.Detailed summary
Period.committoPeriod.voteto include a check for all commits being cast.CommitPeriodNotPassed()if the transition conditions are not met.Summary by CodeRabbit
Release Notes