Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Filter vote accounts with no delegate from being selected in Rotation#3224

Merged
sagar-solana merged 2 commits intosolana-labs:masterfrom
sagar-solana:filter_no_delegate
Mar 12, 2019
Merged

Filter vote accounts with no delegate from being selected in Rotation#3224
sagar-solana merged 2 commits intosolana-labs:masterfrom
sagar-solana:filter_no_delegate

Conversation

@sagar-solana
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@rob-solana
Copy link
Copy Markdown
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
Copy Markdown

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants