We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e21bd2 commit 879491eCopy full SHA for 879491e
program/src/processor.rs
@@ -563,8 +563,10 @@ impl Processor {
563
return Err(StakeError::InsufficientDelegation.into());
564
}
565
566
- set_stake_state(source_stake_account_info, &StakeStateV2::Uninitialized)?;
567
set_stake_state(destination_stake_account_info, &destination_stake_state)?;
+ if source_stake_account_info.key != destination_stake_account_info.key {
568
+ source_stake_account_info.realloc(0, false)?;
569
+ }
570
571
relocate_lamports(
572
source_stake_account_info,
0 commit comments