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 7570d44 commit 7b29bcdCopy full SHA for 7b29bcd
toolkit/data-sources/dolos/src/candidate.rs
@@ -108,7 +108,7 @@ impl AuthoritySelectionDataSource for AuthoritySelectionDataSourceImpl {
108
let pools = self.client.pools_extended().await?;
109
let pred = |pool: PoolListExtendedInner| async move {
110
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) {
+ Result::Ok(match history.into_iter().find(|h| h.epoch == epoch.0 as i32) {
112
Some(e) => Some((
113
MainchainKeyHash::decode_hex(&pool.pool_id)?,
114
StakeDelegation(e.active_stake.parse::<u64>()?),
0 commit comments