Skip to content

Commit 4a548e4

Browse files
committed
fix(staking): census entries should instead iterate on StakeKey<Address>
1 parent 0334202 commit 4a548e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_structures/src/staking/stakes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ where
272272
capability: Capability,
273273
epoch: Epoch,
274274
strategy: CensusStrategy,
275-
) -> Box<dyn Iterator<Item = Address> + '_> {
276-
let iterator = self.rank(capability, epoch).map(|(address, _)| address);
275+
) -> Box<dyn Iterator<Item = StakeKey<Address>> + '_> {
276+
let iterator = self.by_rank(capability, epoch).map(|(address, _)| address);
277277

278278
match strategy {
279279
CensusStrategy::All => Box::new(iterator),

0 commit comments

Comments
 (0)