Feature-gate stake program#13394
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13394 +/- ##
=========================================
+ Coverage 81.9% 82.1% +0.1%
=========================================
Files 376 378 +2
Lines 88405 89963 +1558
=========================================
+ Hits 72424 73866 +1442
- Misses 15981 16097 +116 |
|
Any thoughts one replacing all of the math in the stake program with checked variants while we're replacing the program? It might save us some trouble in the future |
39a0613 to
875cb80
Compare
|
@mvines how does this look now? |
4e5fbc1 to
f45f989
Compare
I think that looks good now. My preference would be to break out the new bank mechanism from the rest of this PR. That I think can be reviewed and landed first (@ryoqun probably should look at it as well). Then the application of it to the stake account is a second PR |
40bcd27 to
c802487
Compare
f2df58b to
ecace66
Compare
d875acb to
8c34ce8
Compare
|
@mvines this is ready for proper review. Thank you! |
mvines
left a comment
There was a problem hiding this comment.
How should I review legacy_stake.stake.rs?
Specifically without a diff commit from the original stake_stake.rs, it's really hard to see what, if anything has changed |
|
(oops) |
Fair! Let me make you a diff commit |
8c34ce8 to
3ce5eba
Compare
580291b to
095098a
Compare
095098a to
4e441c0
Compare
4e441c0 to
b1b5325
Compare
* Add legacy stake-program handling * Strip out duplicative legacy code * Add feature for stake-program-fix * Feature-deploy new stake program * Expand comment (cherry picked from commit 1b1d9f6) # Conflicts: # runtime/src/builtins.rs # runtime/src/feature_set.rs
* Add legacy stake-program handling * Strip out duplicative legacy code * Add feature for stake-program-fix * Feature-deploy new stake program * Expand comment (cherry picked from commit 1b1d9f6)
* Feature-gate stake program (#13394) * Add legacy stake-program handling * Strip out duplicative legacy code * Add feature for stake-program-fix * Feature-deploy new stake program * Expand comment (cherry picked from commit 1b1d9f6) # Conflicts: # runtime/src/builtins.rs # runtime/src/feature_set.rs * Fix conflicts Co-authored-by: Tyera Eulberg <teulberg@gmail.com> Co-authored-by: Tyera Eulberg <tyera@solana.com>
Problem
Upcoming stake-program fixes need to be feature-gated and released on testnet and mainnet-beta.
Summary of Changes
Needs rebase on #13403