Skip to content
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

Merged
merged 2 commits into from
Mar 12, 2019

Conversation

sagar-solana
Copy link
Contributor

@sagar-solana sagar-solana commented Mar 11, 2019

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 delegate wallet commands need to use vote_transaction::new_account_with_delegate

@sagar-solana
Copy link
Contributor Author

Leaving this hanging till @rob-solana figures out wallet updates and decides whether or not we need this.

@rob-solana
Copy link
Contributor

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
Copy link

codecov bot commented Mar 12, 2019

Codecov Report

Merging #3224 into master will increase coverage by 3.4%.
The diff coverage is 100%.

@@           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
Copy link

codecov bot commented Mar 12, 2019

Codecov Report

Merging #3224 into master will increase coverage by 3.4%.
The diff coverage is 100%.

@@           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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants