From 06dae81c24261f3771984331584f743d5eb86a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20D=C3=ADaz?= Date: Mon, 9 Dec 2024 12:40:53 +0100 Subject: [PATCH] fix(staking): census entries should instead iterate on StakeKey
--- data_structures/src/staking/stakes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data_structures/src/staking/stakes.rs b/data_structures/src/staking/stakes.rs index d5da2200d..c65a135c1 100644 --- a/data_structures/src/staking/stakes.rs +++ b/data_structures/src/staking/stakes.rs @@ -198,8 +198,8 @@ where capability: Capability, epoch: Epoch, strategy: CensusStrategy, - ) -> Box + '_> { - let iterator = self.rank(capability, epoch).map(|(address, _)| address); + ) -> Box> + '_> { + let iterator = self.by_rank(capability, epoch).map(|(address, _)| address); match strategy { CensusStrategy::All => Box::new(iterator),