|
5 | 5 | error::StakePoolError, |
6 | 6 | find_deposit_authority_program_address, |
7 | 7 | instruction::{FundingType, PreferredValidatorType, StakePoolInstruction}, |
8 | | - minimum_reserve_lamports, minimum_stake_lamports, stake_program, |
| 8 | + minimum_reserve_lamports, minimum_stake_lamports, |
9 | 9 | state::{ |
10 | 10 | AccountType, Fee, FeeType, StakePool, StakeStatus, ValidatorList, ValidatorListHeader, |
11 | 11 | ValidatorStakeInfo, |
@@ -674,7 +674,7 @@ impl Processor { |
674 | 674 | stake_pool.total_lamports = total_lamports; |
675 | 675 | stake_pool.pool_token_supply = 0; |
676 | 676 | stake_pool.last_update_epoch = Clock::get()?.epoch; |
677 | | - stake_pool.lockup = stake_program::Lockup::default(); |
| 677 | + stake_pool.lockup = stake::state::Lockup::default(); |
678 | 678 | stake_pool.epoch_fee = epoch_fee; |
679 | 679 | stake_pool.next_epoch_fee = None; |
680 | 680 | stake_pool.preferred_deposit_validator_vote_address = None; |
@@ -1530,9 +1530,7 @@ impl Processor { |
1530 | 1530 | if let Some(stake::state::StakeState::Stake(_, validator_stake)) = |
1531 | 1531 | validator_stake_state |
1532 | 1532 | { |
1533 | | - if stake_program::active_stakes_can_merge(&stake, &validator_stake) |
1534 | | - .is_ok() |
1535 | | - { |
| 1533 | + if validator_stake.delegation.activation_epoch < clock.epoch { |
1536 | 1534 | let additional_lamports = transient_stake_info |
1537 | 1535 | .lamports() |
1538 | 1536 | .saturating_sub(stake.delegation.stake); |
|
0 commit comments