From e87b941a5153d4ed5542e46826da352d2f7c065c Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Wed, 2 Mar 2022 17:29:40 -0600 Subject: [PATCH] Test stake split: destination delegation is at least the minimum (#23456) --- 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 4d882df716..05f704d701 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!"); }