Sort in **descending** stake order#8787
Conversation
credit goes to xyphus8335 on discord 🫡 I did not catch it myself. @AshwinSekar do you think this should be backported? Not sure if it will change too much tbh |
|
In theory this could speedup confirmation times as votes are streamed from replay to cluster_info_vote_listener. If the higher staked votes are first, then we reach 2/3 faster. Hard to say what the difference is, but I imagine we could reach 2/3 within the first 32 data shreds, which means fewer blockstore inserts / verifications in the hot path. I'd be in favor of backporting this PR. |
|
Less important : it'll significantly change average vote latencies as reported by vortex, or as used in ranking like xshin.fi |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8787 +/- ##
=========================================
- Coverage 83.2% 83.2% -0.1%
=========================================
Files 857 857
Lines 372859 372859
=========================================
- Hits 310522 310517 -5
- Misses 62337 62342 +5 🚀 New features to boost your workflow:
|
|
Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis. |
(cherry picked from commit cefa44b)
Sort in **descending** stake order (#8787) (cherry picked from commit cefa44b) Co-authored-by: Andrew Fitzgerald <[email protected]>
Problem
Summary of Changes
Fixes #