-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Purge storage rewards from accounts db for testnet #11996
Conversation
// never do this for testnet; we're pristine here. :) | ||
OperatingMode::Development => false, | ||
// schedule to remove at testnet/tds | ||
OperatingMode::Preview => self.epoch() == 93, |
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.
Let's this done rather quickly, otherwise we can't land #11927
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.
If we're going to roll this out on testnet epoch 93, please speed up this activation to 93 as well!
Line 3289 in af08221
OperatingMode::Preview => self.epoch() == 95, |
dbed1b6
to
7f5c09a
Compare
Codecov Report
@@ Coverage Diff @@
## master #11996 +/- ##
=======================================
Coverage 82.1% 82.2%
=======================================
Files 334 334
Lines 78643 78692 +49
=======================================
+ Hits 64639 64693 +54
+ Misses 14004 13999 -5 |
* Purge storage rewards from accounts db for testnet * Fix test failing only on stable (cherry picked from commit fb71ee6)
Problem
current capitalization calculation has an edge-case bug (it ignores overflowing). And testnet has bogus deprecated accounts still (storage reward pools for archiver).
With both combined, this skewed the capitalization for testnet....
Summary of Changes
Eradicate old-age vestigial accounts entirely and adjust the skewed capitalization to pave a way for cleaner new cap. calculation & enforcement at #11927.
I largely copied from #11966 ;)
Context
This blocks #11927.
Fixes #10870