diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-03-25 08:45:19 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-03-25 08:45:19 +0200 |
commit | 46d4fd000cb86f96118bd9e228cfb58fb204e482 (patch) | |
tree | 9942b11a421e8743b179f341ca28c39f08843a92 /src/cryptonote_core/difficulty.h | |
parent | Merge pull request #756 (diff) | |
parent | Revert "Merge pull request #749" (diff) | |
download | monero-46d4fd000cb86f96118bd9e228cfb58fb204e482.tar.xz |
Merge pull request #761
01e0a69 Revert "Merge pull request #749" (Riccardo Spagni)
Diffstat (limited to 'src/cryptonote_core/difficulty.h')
-rw-r--r-- | src/cryptonote_core/difficulty.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/cryptonote_core/difficulty.h b/src/cryptonote_core/difficulty.h index 910f97035..d49c2f3b8 100644 --- a/src/cryptonote_core/difficulty.h +++ b/src/cryptonote_core/difficulty.h @@ -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); } |