-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: possible overflow in difficulty calculation (fixes #3923) compan…
…ion (#4097) Description Quick fix to overflow problem in difficulty. This problem had already been settled for `big_endian_difficulty`. Motivation and Context In #4090, @CjS77 point it out that the `little_endian_difficulty` method had the same problem. This PR is an attempt to tackle it. How Has This Been Tested? Adapted tests from previous PR (#4090)
- Loading branch information
1 parent
bd672eb
commit ddb8453
Showing
1 changed file
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters