Remove StakeInstruction::DeactivateDelinquent featurization (#32045)
This commit is contained in:
parent
450e7c2395
commit
129b457c99
|
@ -425,24 +425,17 @@ declare_process_instruction!(
|
||||||
}
|
}
|
||||||
Ok(StakeInstruction::DeactivateDelinquent) => {
|
Ok(StakeInstruction::DeactivateDelinquent) => {
|
||||||
let mut me = get_stake_account()?;
|
let mut me = get_stake_account()?;
|
||||||
if invoke_context
|
instruction_context.check_number_of_instruction_accounts(3)?;
|
||||||
.feature_set
|
|
||||||
.is_active(&feature_set::stake_deactivate_delinquent_instruction::id())
|
|
||||||
{
|
|
||||||
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()?;
|
||||||
deactivate_delinquent(
|
deactivate_delinquent(
|
||||||
transaction_context,
|
transaction_context,
|
||||||
instruction_context,
|
instruction_context,
|
||||||
&mut me,
|
&mut me,
|
||||||
1,
|
1,
|
||||||
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()?;
|
||||||
|
|
Loading…
Reference in New Issue