Skip to content

Commit

Permalink
fix(staking): census entries should instead iterate on StakeKey<Address>
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Dec 9, 2024
1 parent ae52341 commit 06dae81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_structures/src/staking/stakes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ where
capability: Capability,
epoch: Epoch,
strategy: CensusStrategy,
) -> Box<dyn Iterator<Item = Address> + '_> {
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);

match strategy {
CensusStrategy::All => Box::new(iterator),
Expand Down

0 comments on commit 06dae81

Please sign in to comment.