Skip to content

Commit

Permalink
fix: add saturating sub to prevent potential underflow (#4286)
Browse files Browse the repository at this point in the history
Replaced some standard minuses with `saturating_sub` to prevent underflows, particularly when testing with a tip height that is low.
  • Loading branch information
stringhandler authored Jul 7, 2022
1 parent bcaabf0 commit 56d184a
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 260 deletions.
Loading

0 comments on commit 56d184a

Please sign in to comment.