We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 642024b commit d28d5daCopy full SHA for d28d5da
1 file changed
clients/cli/src/quarantine.rs
@@ -115,9 +115,8 @@ pub async fn get_stake_summaries(
115
// if this assert ever triggers, multistake or another account change has landed
116
// this function should be updated to use real stake account sizes
117
// we may be fetching hundreds of accounts here so memoize the rents
118
- assert_eq!(
119
- account.data.len(),
120
- StakeStateV2::size_of(),
+ assert!(
+ !account.data.is_empty() && account.data.len() != StakeStateV2::size_of(),
121
"StakeStateV2 is no longer canonical, or StakeStateV2::size_of() is no longer 200."
122
);
123
0 commit comments