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

Remove support for stake redelegation #7995

Merged

Conversation

rob-solana
Copy link
Contributor

Problem

A staker can effectively defeat cooldown and screw up consensus by creating a dummy vote account and then redelegating to it.

Such a staker can't withdraw early, but bank weights are disrupted outside of warmup/cooldown.

Summary of Changes

Remove support for redelegate(), except after cool down

Fixes #7884
Fixes #7858

@mvines mvines added the v0.23 label Jan 28, 2020
@rob-solana rob-solana force-pushed the Remove-support-for-stake-redelegation branch from e94895a to ae408b8 Compare January 28, 2020 19:22
@codecov
Copy link

codecov bot commented Jan 28, 2020

Codecov Report

Merging #7995 into master will decrease coverage by <.1%.
The diff coverage is 92.7%.

@@           Coverage Diff            @@
##           master   #7995     +/-   ##
========================================
- Coverage    82.1%   82.1%   -0.1%     
========================================
  Files         244     245      +1     
  Lines       53044   53040      -4     
========================================
- Hits        43565   43552     -13     
- Misses       9479    9488      +9

@rob-solana rob-solana force-pushed the Remove-support-for-stake-redelegation branch from ae408b8 to c173a92 Compare January 29, 2020 05:02
@rob-solana rob-solana merged commit e6803da into solana-labs:master Jan 30, 2020
@rob-solana rob-solana deleted the Remove-support-for-stake-redelegation branch January 30, 2020 01:59
mergify bot pushed a commit that referenced this pull request Jan 30, 2020
* Remove support for stake redelegation

* fixup

(cherry picked from commit e6803da)

# Conflicts:
#	programs/stake/src/stake_state.rs
mvines pushed a commit that referenced this pull request Jan 30, 2020
* Remove support for stake redelegation

* fixup
solana-grimes pushed a commit that referenced this pull request Jan 30, 2020
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.

stake_state::redelegate() can disrupt consensus Cannot stake after deactivating stake
2 participants