This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Purge storage rewards from accounts db for testnet#11996
Merged
ryoqun merged 2 commits intosolana-labs:masterfrom Sep 3, 2020
Merged
Purge storage rewards from accounts db for testnet#11996ryoqun merged 2 commits intosolana-labs:masterfrom
ryoqun merged 2 commits intosolana-labs:masterfrom
Conversation
ryoqun
commented
Sep 2, 2020
| // never do this for testnet; we're pristine here. :) | ||
| OperatingMode::Development => false, | ||
| // schedule to remove at testnet/tds | ||
| OperatingMode::Preview => self.epoch() == 93, |
Contributor
Author
There was a problem hiding this comment.
Let's this done rather quickly, otherwise we can't land #11927
mvines
reviewed
Sep 2, 2020
mvines
previously approved these changes
Sep 3, 2020
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 |
mergify Bot
pushed a commit
that referenced
this pull request
Sep 3, 2020
* Purge storage rewards from accounts db for testnet * Fix test failing only on stable (cherry picked from commit fb71ee6)
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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