Add RedelegatedStakeMustFullyActivateBeforeDeactivationIsPermitted StakeError (#32522)
Co-authored-by: HaoranYi <haoran.yi@solana.com>
This commit is contained in:
parent
88c52a5c05
commit
719ba8c84f
|
@ -66,6 +66,10 @@ pub enum StakeError {
|
||||||
|
|
||||||
#[error("stake redelegation to the same vote account is not permitted")]
|
#[error("stake redelegation to the same vote account is not permitted")]
|
||||||
RedelegateToSameVoteAccount,
|
RedelegateToSameVoteAccount,
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
|
#[error("redelegated stake must be fully activated before deactivation")]
|
||||||
|
RedelegatedStakeMustFullyActivateBeforeDeactivationIsPermitted,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<E> DecodeError<E> for StakeError {
|
impl<E> DecodeError<E> for StakeError {
|
||||||
|
|
Loading…
Reference in New Issue