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,24 +425,17 @@ declare_process_instruction!(
}
Ok(StakeInstruction::DeactivateDelinquent) => {
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()?;
deactivate_delinquent(
transaction_context,
instruction_context,
&mut me,
1,
2,
clock.epoch,
)
} else {
Err(InstructionError::InvalidInstructionData)
}
let clock = invoke_context.get_sysvar_cache().get_clock()?;
deactivate_delinquent(
transaction_context,
instruction_context,
&mut me,
1,
2,
clock.epoch,
)
}
Ok(StakeInstruction::Redelegate) => {
let mut me = get_stake_account()?;