Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add saturating sub to prevent potential underflow #4286

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

stringhandler
Copy link
Collaborator

Replaced some standard minuses with saturating_sub to prevent underflows, particularly when testing with a tip height that is low.

@aviator-app aviator-app bot merged commit 56d184a into tari-project:development Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants