Skip to content

Commit

Permalink
Test stake split: destination delegation is at least the minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo committed Mar 2, 2022
1 parent 6b2683f commit b98c64d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions programs/stake/src/stake_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6802,6 +6802,7 @@ mod tests {
expected_destination_stake_delegation,
destination_stake.delegation.stake
);
assert!(destination_stake.delegation.stake >= MINIMUM_STAKE_DELEGATION,);
} else {
panic!("destination state must be StakeStake::Stake after successful split when source is also StakeState::Stake!");
}
Expand Down

0 comments on commit b98c64d

Please sign in to comment.