mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
Revert "Fix arithmetic lint in committee_cache (saturating_sub)"
This reverts commit bb3e9e12d2.
This commit is contained in:
@@ -332,7 +332,7 @@ impl CommitteeCache {
|
|||||||
self.shuffling_positions
|
self.shuffling_positions
|
||||||
.get(validator_index)?
|
.get(validator_index)?
|
||||||
.0
|
.0
|
||||||
.map(|p| p.get().saturating_sub(1))
|
.map(|p| p.get() - 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user