We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0334202 commit 4a548e4Copy full SHA for 4a548e4
data_structures/src/staking/stakes.rs
@@ -272,8 +272,8 @@ where
272
capability: Capability,
273
epoch: Epoch,
274
strategy: CensusStrategy,
275
- ) -> Box<dyn Iterator<Item = Address> + '_> {
276
- let iterator = self.rank(capability, epoch).map(|(address, _)| address);
+ ) -> Box<dyn Iterator<Item = StakeKey<Address>> + '_> {
+ let iterator = self.by_rank(capability, epoch).map(|(address, _)| address);
277
278
match strategy {
279
CensusStrategy::All => Box::new(iterator),
0 commit comments