Don't commit failed out-dated votes#20850
Don't commit failed out-dated votes#20850sakridge wants to merge 1 commit intosolana-labs:masterfrom
Conversation
e6cacf4 to
b7c7673
Compare
Codecov Report
@@ Coverage Diff @@
## master #20850 +/- ##
=========================================
- Coverage 81.5% 81.5% -0.1%
=========================================
Files 499 499
Lines 140278 140296 +18
=========================================
- Hits 114403 114368 -35
- Misses 25875 25928 +53 |
|
Nice, so once this goes in, we can then increase the range of leaders in the |
|
The PR I had before, #19400, does similar thing, except it drops too_old vote before |
Yeah if we're going to be parsing through hundreds of thousands of votes, it might be preferable to do this before the |
|
Although each We might want to bench how long it takes to continually read out vote account + The failure rate can also be mitigated if we do some more smart processing from |
|
Other side of |
Agree, this is much simpler. |
b7c7673 to
f7f4105
Compare
Pull request has been modified.
b5c15e7 to
abfefb3
Compare
abfefb3 to
f4d7211
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This stale pull request has been automatically closed. Thank you for your contributions. |
Problem
Outdated votes can be bloated on-chain. Since votes arrive out-of-order, then older ones can be applied after later ones and also for different branches.
Summary of Changes
Don't commit failed votes which fail in the way of VoteTooOld.
Fixes #