Skip to content

Commit

Permalink
Remove StakeInstruction::DeactivateDelinquent featurization (solana-l…
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored Jun 10, 2023
1 parent 450e7c2 commit 129b457
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions programs/stake/src/stake_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand Down

0 comments on commit 129b457

Please sign in to comment.