Add RedelegatedStakeMustFullyActivateBeforeDeactivationIsPermitted StakeError (#32522)

Co-authored-by: HaoranYi <haoran.yi@solana.com>
This commit is contained in:
HaoranYi 2023-07-18 12:52:40 -05:00 committed by GitHub
parent 88c52a5c05
commit 719ba8c84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ pub enum StakeError {
#[error("stake redelegation to the same vote account is not permitted")]
RedelegateToSameVoteAccount,
#[allow(dead_code)]
#[error("redelegated stake must be fully activated before deactivation")]
RedelegatedStakeMustFullyActivateBeforeDeactivationIsPermitted,
}
impl<E> DecodeError<E> for StakeError {