36#include <boost/multiprecision/cpp_int.hpp>
56 uint64_t next_difficulty_64(std::vector<std::uint64_t> timestamps, std::vector<uint64_t> cumulative_difficulties,
size_t target_seconds);
60 difficulty_type next_difficulty(std::vector<std::uint64_t> timestamps, std::vector<difficulty_type> cumulative_difficulties,
size_t target_seconds);
static constexpr const char hex[]
Definition wipeable_string.cpp:36
POD_CLASS hash
Definition hash.h:49
Holds cryptonote related classes and helpers.
Definition blockchain_db.cpp:45
uint64_t next_difficulty_64(std::vector< std::uint64_t > timestamps, std::vector< uint64_t > cumulative_difficulties, size_t target_seconds)
Definition difficulty.cpp:122
boost::multiprecision::uint128_t difficulty_type
Definition difficulty.h:41
bool check_hash_64(const crypto::hash &hash, uint64_t difficulty)
checks if a hash fits the given difficulty
Definition difficulty.cpp:105
bool check_hash_128(const crypto::hash &hash, difficulty_type difficulty)
Definition difficulty.cpp:177
bool check_hash(const crypto::hash &hash, difficulty_type difficulty)
Definition difficulty.cpp:196
difficulty_type next_difficulty(std::vector< uint64_t > timestamps, std::vector< difficulty_type > cumulative_difficulties, size_t target_seconds)
Definition difficulty.cpp:203
unsigned __int64 uint64_t
Definition stdint.h:136