Fix arithmetic lint in committee_cache (saturating_sub)

This commit is contained in:
dapplion
2026-03-25 20:38:15 -05:00
parent a34b7c99dc
commit bb3e9e12d2

View File

@@ -332,7 +332,7 @@ impl CommitteeCache {
self.shuffling_positions
.get(validator_index)?
.0
.map(|p| p.get() - 1)
.map(|p| p.get().saturating_sub(1))
}
}