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

add overflow warnings to linear sum, fix max distance calculation #2981

Merged
merged 1 commit into from
Feb 14, 2024
Merged

add overflow warnings to linear sum, fix max distance calculation #2981

merged 1 commit into from
Feb 14, 2024

Conversation

zeroxbt
Copy link
Contributor

@zeroxbt zeroxbt commented Feb 14, 2024

I've added warnings in case distance and stake are greater than uint64, as this should never happen, but currently there is no way to notice if it does.
I've fixed the max distance calculation, as it calculates the distance between the nodes at the edges instead of finding the max distance of the neighborhood.

@NZT48
Copy link
Collaborator

NZT48 commented Feb 14, 2024

Good catch, thanks @zeroxbt!

@NZT48 NZT48 merged commit d3c1676 into OriginTrail:v6/develop Feb 14, 2024
3 checks passed
@zeroxbt zeroxbt deleted the v6/bug-fix/max-distance-calculation branch February 14, 2024 16:46
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.

3 participants