Remove StakeInstruction::DeactivateDelinquent featurization (#32045)

This commit is contained in:
mvines 2023-06-09 22:56:13 -04:00 committed by GitHub
parent 450e7c2395
commit 129b457c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 17 deletions

View File

@ -425,10 +425,6 @@ declare_process_instruction!(
} }
Ok(StakeInstruction::DeactivateDelinquent) => { Ok(StakeInstruction::DeactivateDelinquent) => {
let mut me = get_stake_account()?; let mut me = get_stake_account()?;
if invoke_context
.feature_set
.is_active(&feature_set::stake_deactivate_delinquent_instruction::id())
{
instruction_context.check_number_of_instruction_accounts(3)?; instruction_context.check_number_of_instruction_accounts(3)?;
let clock = invoke_context.get_sysvar_cache().get_clock()?; let clock = invoke_context.get_sysvar_cache().get_clock()?;
@ -440,9 +436,6 @@ declare_process_instruction!(
2, 2,
clock.epoch, clock.epoch,
) )
} else {
Err(InstructionError::InvalidInstructionData)
}
} }
Ok(StakeInstruction::Redelegate) => { Ok(StakeInstruction::Redelegate) => {
let mut me = get_stake_account()?; let mut me = get_stake_account()?;