From b98c64da6d940aacff663d0b4c566c3a4c1b4e26 Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Wed, 2 Mar 2022 15:31:42 -0600 Subject: [PATCH] Test stake split: destination delegation is at least the minimum --- programs/stake/src/stake_state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/stake/src/stake_state.rs b/programs/stake/src/stake_state.rs index 4d882df7160157..05f704d7016a23 100644 --- a/programs/stake/src/stake_state.rs +++ b/programs/stake/src/stake_state.rs @@ -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!"); }