Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ebatsell committed Jun 19, 2024
1 parent 3110775 commit 2d6b55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/steward/src/state/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ impl Parameters {
let window_max = current_epoch
.checked_sub(VALIDATOR_HISTORY_FIRST_RELIABLE_EPOCH)
.ok_or(StewardError::ArithmeticError)?
.min(validator_history::ValidatorHistory::MAX_ITEMS - 1);
.min(validator_history::ValidatorHistory::MAX_ITEMS as usize - 1);

Check failure on line 333 in programs/steward/src/state/parameters.rs

View workflow job for this annotation

GitHub Actions / udeps

mismatched types

Check failure on line 333 in programs/steward/src/state/parameters.rs

View workflow job for this annotation

GitHub Actions / lint

mismatched types

Check failure on line 333 in programs/steward/src/state/parameters.rs

View workflow job for this annotation

GitHub Actions / verified_build

mismatched types
let window_max = cast_epoch(window_max)?;

if self.mev_commission_range > window_max {
Expand Down

0 comments on commit 2d6b55d

Please sign in to comment.