Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(contract_sync): saturating math in eta calculator (#2453)
### Description It was observed that this function can be called with a `last_block` that is greater than the `currenct_block`, which results in an underflow. Use saturating math to prevent this. ### Drive-by changes ### Related issues ### Backward compatibility _Are these changes backward compatible?_ Yes _Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling?_ None ### Testing _What kind of testing have these changes undergone?_ None
- Loading branch information