-
Notifications
You must be signed in to change notification settings - Fork 171
[consensus] Improve consensus' usage of Strategy
#2762
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
Deploying monorepo with
|
| Latest commit: |
91bf1d5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2cb95376.monorepo-eu0.pages.dev |
| Branch Preview URL: | https://cl-improve-consensus-paralle.monorepo-eu0.pages.dev |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
commonware-mcp | 91bf1d5 | Jan 09 2026, 04:54 AM |
| rng: &mut R, | ||
| subject: Subject<'_, D>, | ||
| attestations: I, | ||
| _strategy: &impl Strategy, |
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 is updated by #2759
804d8de to
2834155
Compare
consensus' usage of Strategy
Resolve merge conflict in threshold.rs imports. Co-Authored-By: Claude Opus 4.5 <[email protected]>
…parallel-api # Conflicts: # consensus/src/simplex/actors/resolver/state.rs # consensus/src/simplex/actors/voter/round.rs # consensus/src/simplex/types.rs
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #2762 +/- ##
==========================================
+ Coverage 93.29% 93.31% +0.02%
==========================================
Files 372 372
Lines 114291 114643 +352
==========================================
+ Hits 106628 106983 +355
+ Misses 7663 7660 -3
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Overview
Improves the
consensuscrate's usage ofcommonware-parallel. Introduced in #2621, the threshold scheme was generic over theStrategytrait, which created a huge pain for downstream consumption. Now, the scheme's functions that can take advantage of theStrategyjust accept one, and the consensus engines feed it in.This PR is mainly focused on fixing up the API, which was very painful to integrate into alto beforehand. Performance improvements for the issues spotted in the alto deployment (commonwarexyz/alto#167) are delegated to #2759.