-
Notifications
You must be signed in to change notification settings - Fork 260
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
Remove partitioned reward test CLI and Config #3949
Remove partitioned reward test CLI and Config #3949
Conversation
4d7ce6a
to
8e49e58
Compare
8e49e58
to
d45aaf6
Compare
IMO it would be nice to wait until 2.3 before removing the featurization code. Otherwise, if a private cluster is running and hasn't activated P.E.R. yet, when a node upgrades to master, it'll diverge. By waiting one additional version, then we know builds of edge (2.2) always work with builds of stable (2.0). For this PR, is this strictly the testing/experimental code though? |
This pr didn't remove featurization code it only removes test harness code and test cli and a few hacks. |
For this PR, is this strictly the testing/experimental code though? Yes. |
@brooksprumo Is this a new policy? cc @willhickey I think adding an additional minor-version delay is arbitrary. Consider the situation when v2.1 becomes stable and we've removed the PER feature in v2.3 (edge). A private cluster running v2.1 but without PER activated will experience the same divergence updating to master. That is to say, there isn't any way to ever remove featurization code and guarantee builds of edge always work with builds of stable. In every case, we must depend on users to emulate MNB activation sets. |
|
@@ -5676,16 +5661,13 @@ impl Bank { | |||
let measure_total = Measure::start(""); | |||
|
|||
let slot = self.slot(); | |||
let ignore = (!self.is_partitioned_rewards_feature_enabled() |
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.
It looks like the test CLI will work fine even when the feature is active.
ah. It will be fine to run validator with those test CLI. |
It looks like @CriesofCarrots's Let's close this one. |
and
No, not a new policy, and yes, it is arbitrary. Mostly I got bit by this on a pop-net cluster when TVC activated. I upgraded one node that was running the same minor version (2.2/master in this case), and then it stopped working because TVC's featurization was removed promptly after it was activated on mnb. |
Actually, I hadn't done any of the CLI or accountsDB cleanup, so I was going to approve this. Okay if I cherry-pick your commit instead, @HaoranYi ? |
Yes, please cherry pick it to your branch. |
Problem
Partitioned epoch rewards feature has been activated. The test cli and config are no longer needed. Clean it up to make the code simpler.
Summary of Changes
Fixes #