-
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
Filter vote accounts with no delegate from being selected in Rotation #3224
Filter vote accounts with no delegate from being selected in Rotation #3224
Conversation
Leaving this hanging till @rob-solana figures out wallet updates and decides whether or not we need this. |
this is the right approach for Beacons. changing wallet and vote_api to support creation and initialization in one go is wasted work in the light of #3148, which means a rewrite of this stuff with this change, staking accounts with a self-referential delegate will not be considered in leader scheduling |
Codecov Report
@@ Coverage Diff @@
## master #3224 +/- ##
========================================
+ Coverage 78.2% 81.7% +3.4%
========================================
Files 131 129 -2
Lines 20740 19847 -893
========================================
- Hits 16225 16217 -8
+ Misses 4515 3630 -885 |
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #3224 +/- ##
========================================
+ Coverage 78.2% 81.7% +3.4%
========================================
Files 131 129 -2
Lines 20740 19847 -893
========================================
- Hits 16225 16217 -8
+ Misses 4515 3630 -885 |
Problem
Since #3211, wallet can't fund and delegate accounts fast enough and the staking account id ends up in rotation and the network never recovers
Summary of Changes
Since a lot of the stake design is going to change in the coming weeks, this is a stopgap solution that disallows staking accounts that are "delegated" to themselves from being considered in rotation.
@garious, this or
we need to revive your PR with a single instruction to create and delegatewallet commands need to usevote_transaction::new_account_with_delegate