mirror of
https://github.com/monero-project/monero.git
synced 2025-08-14 14:55:34 -04:00
Revert "Merge pull request #749"
This reverts commit7fa63a82a1
, reversing changes made tocb6be986c3
.
This commit is contained in:
parent
40b8a5f327
commit
01e0a69c17
15 changed files with 594 additions and 2909 deletions
|
@ -39,18 +39,6 @@ namespace cryptonote
|
|||
{
|
||||
typedef std::uint64_t difficulty_type;
|
||||
|
||||
/**
|
||||
* @brief checks if a hash fits the given difficulty
|
||||
*
|
||||
* The hash passes if (hash * difficulty) < 2^192.
|
||||
* Phrased differently, if (hash * difficulty) fits without overflow into
|
||||
* the least significant 192 bits of the 256 bit multiplication result.
|
||||
*
|
||||
* @param hash the hash to check
|
||||
* @param difficulty the difficulty to check against
|
||||
*
|
||||
* @return true if valid, else false
|
||||
*/
|
||||
bool check_hash(const crypto::hash &hash, difficulty_type difficulty);
|
||||
difficulty_type next_difficulty(std::vector<std::uint64_t> timestamps, std::vector<difficulty_type> cumulative_difficulties, size_t target_seconds);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue