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);
def difficulty()
Definition: gen_wide_data.py:11
::std::string string
Definition: gtest-port.h:1097
difficulty_type next_difficulty(std::vector< uint64_t > timestamps, std::vector< difficulty_type > cumulative_difficulties, size_t target_seconds)
Definition: difficulty.cpp:203
Holds cryptonote related classes and helpers.
Definition: blockchain_db.cpp:44
bool check_hash(const crypto::hash &hash, difficulty_type difficulty)
Definition: difficulty.cpp:196
unsigned __int64 uint64_t
Definition: stdint.h:136
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
bool check_hash_64(const crypto::hash &hash, uint64_t difficulty)
checks if a hash fits the given difficulty
Definition: difficulty.cpp:105
boost::multiprecision::uint128_t difficulty_type
Definition: difficulty.h:41
POD_CLASS hash
Definition: hash.h:49
std::string hex(difficulty_type v)
Definition: difficulty.cpp:242
bool check_hash_128(const crypto::hash &hash, difficulty_type difficulty)
Definition: difficulty.cpp:177