Skip to content

Commit d910c85

Browse files
committed
fix
1 parent a868aac commit d910c85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolkit/data-sources/dolos/src/candidate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl AuthoritySelectionDataSource for AuthoritySelectionDataSourceImpl {
108108
let pools = self.client.pools_extended().await?;
109109
let pred = |pool: PoolListExtendedInner| async move {
110110
let history = self.client.pools_history(&pool.pool_id).await?;
111-
Result::Ok(match history.into_iter().find(|h| h.epoch <= epoch.0 as i32) {
111+
Result::Ok(match history.into_iter().find(|h| h.epoch == epoch.0 as i32) {
112112
Some(e) => Some((
113113
MainchainKeyHash::decode_hex(&pool.pool_id)?,
114114
StakeDelegation(e.active_stake.parse::<u64>()?),

0 commit comments

Comments
 (0)