You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Total difficulty achieved is stored in a u64. This should be much larger as this will overflow at one point or another. Recommended is u256 for individual targets and something larger for the compared chain difficulty
The text was updated successfully, but these errors were encountered:
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
---------
Co-authored-by: Aaron Feickert <66188213+AaronFeickert@users.noreply.github.com>
Total difficulty achieved is stored in a u64. This should be much larger as this will overflow at one point or another. Recommended is u256 for individual targets and something larger for the compared chain difficulty
The text was updated successfully, but these errors were encountered: