Skip to content

Commit d28d5da

Browse files
committed
stricter santity on stake acocunt size
1 parent 642024b commit d28d5da

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

clients/cli/src/quarantine.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ pub async fn get_stake_summaries(
115115
// if this assert ever triggers, multistake or another account change has landed
116116
// this function should be updated to use real stake account sizes
117117
// we may be fetching hundreds of accounts here so memoize the rents
118-
assert_eq!(
119-
account.data.len(),
120-
StakeStateV2::size_of(),
118+
assert!(
119+
!account.data.is_empty() && account.data.len() != StakeStateV2::size_of(),
121120
"StakeStateV2 is no longer canonical, or StakeStateV2::size_of() is no longer 200."
122121
);
123122

0 commit comments

Comments
 (0)