We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62708fc commit 5b90ff5Copy full SHA for 5b90ff5
1 file changed
data_structures/src/staking/stakes.rs
@@ -310,7 +310,8 @@ where
310
.map(|stake| stake.read_value().power(capability, epoch))
311
.collect::<Vec<Power>>()
312
.into_iter()
313
- .sum())
+ .max()
314
+ .unwrap_or_default())
315
}
316
317
/// For a given capability, obtain the full list of positive stake entries reversely ordered by their power.
0 commit comments