-
Notifications
You must be signed in to change notification settings - Fork 220
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
feat!: fix difficulty overflow #5935
feat!: fix difficulty overflow #5935
Conversation
Test Results (Integration tests) 2 files + 2 11 suites +11 16m 59s ⏱️ + 16m 59s For more details on these failures, see this check. Results for commit 8ff6354. ± Comparison against base commit 27f78de. ♻️ This comment has been updated with latest results. |
base_layer/core/src/base_node/chain_metadata_service/service.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Aaron Feickert <[email protected]>
Co-authored-by: Aaron Feickert <[email protected]>
Co-authored-by: Aaron Feickert <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Increases the accumulated algo difficulty from u64 ti u128.
Increases the total accumulated difficulty from u128 to u256.
Motivation and Context
Having block difficulty as u64 and accumulated difficulty as u64 will overflow.
See: #5851
How Has This Been Tested?
unit tests
Fixes: #5851