-
Notifications
You must be signed in to change notification settings - Fork 474
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
state proofs: update state proof totals calculation #4445
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4445 +/- ##
==========================================
+ Coverage 55.19% 55.21% +0.02%
==========================================
Files 398 398
Lines 50165 50175 +10
==========================================
+ Hits 27689 27705 +16
+ Misses 20159 20155 -4
+ Partials 2317 2315 -2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Looks right to me. Though it seems barely worth it, given the small amounts of rewards that are paid these days, and that all participants have necessarily received rewards fairly recently, when they last keyreg'd.
// 10046 = (12 * 60 * 60 / 4.3) | ||
// for the sake of future manual calculations, we'll round that down a bit : | ||
v33.ApprovedUpgrades[protocol.ConsensusV34] = 10000 | ||
v33.ApprovedUpgrades[protocol.ConsensusV35] = 10000 |
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.
shouldn't we have v33 upgradeable to v34?
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.
we were going to skip v34 (what is currently on betanet) and let mainnet go from v32 to v33 to v35
Summary
Update the total weight to subtract rewards from accounts who have expired or have keys that do not match the weight commitment round.
Test Plan
New tests needed