-
Notifications
You must be signed in to change notification settings - Fork 331
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
relax stake split destination check #162
relax stake split destination check #162
Conversation
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.
Thanks! The logic looks correct now.
One nit to add a comment to help elucidate the nested ifs. Then I think this is good, as long as CI is happy.
Also, in future, please don't push merge commits. We much prefer rebase and force push to pick up latest upstream.
sure ! |
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.
Thank you! Will merge once CI passes (macos clippy failures are unrelated)
ty |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #162 +/- ##
=======================================
Coverage 81.8% 81.9%
=======================================
Files 837 837
Lines 226741 226743 +2
=======================================
+ Hits 185699 185732 +33
+ Misses 41042 41011 -31 |
Thanks for your contribution @Nagaprasadvr |
Merging on red, as CI failures are unrelated |
🙌 |
Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis. |
* relax stake split destination check * change stake_account error handling logic * fmt * modify logic * change error message when account is neither owned by stake program or system program * add a comment explaining nested ifs in stake_account error handling * fix typos in comments * update comment (cherry picked from commit 6bcb77d)
* relax stake split destination check * change stake_account error handling logic * fmt * modify logic * change error message when account is neither owned by stake program or system program * add a comment explaining nested ifs in stake_account error handling * fix typos in comments * update comment
relax stake split destination check (#162) * relax stake split destination check * change stake_account error handling logic * fmt * modify logic * change error message when account is neither owned by stake program or system program * add a comment explaining nested ifs in stake_account error handling * fix typos in comments * update comment (cherry picked from commit 6bcb77d) Co-authored-by: Nagaprasad V R <[email protected]>
…anza-xyz#368) relax stake split destination check (anza-xyz#162) * relax stake split destination check * change stake_account error handling logic * fmt * modify logic * change error message when account is neither owned by stake program or system program * add a comment explaining nested ifs in stake_account error handling * fix typos in comments * update comment (cherry picked from commit 6bcb77d) Co-authored-by: Nagaprasad V R <[email protected]>
* relax stake split destination check * change stake_account error handling logic * fmt * modify logic * change error message when account is neither owned by stake program or system program * add a comment explaining nested ifs in stake_account error handling * fix typos in comments * update comment
Issue #147
####Improvements
Summary of Changes
1 solana/cli/src/stake.rs
function - process_split_stake
removed some strict checks resulting in allowing system account (without data and some lamports) to be allocated as new stake account to receive split