mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Merge pull request #2245
c8640a3d
difficulty: fix misleading comment (Guillaume LE VAILLANT)
This commit is contained in:
commit
e5a1628c88
@ -42,9 +42,9 @@ namespace cryptonote
|
||||
/**
|
||||
* @brief checks if a hash fits the given difficulty
|
||||
*
|
||||
* The hash passes if (hash * difficulty) < 2^192.
|
||||
* The hash passes if (hash * difficulty) < 2^256.
|
||||
* Phrased differently, if (hash * difficulty) fits without overflow into
|
||||
* the least significant 192 bits of the 256 bit multiplication result.
|
||||
* the least significant 256 bits of the 320 bit multiplication result.
|
||||
*
|
||||
* @param hash the hash to check
|
||||
* @param difficulty the difficulty to check against
|
||||
|
Loading…
Reference in New Issue
Block a user