mirror of
https://github.com/monero-project/monero.git
synced 2025-08-14 08:05:32 -04:00
rpc: make wide_difficulty hexadecimal
This should be friendlier for clients which don't have bignum support
This commit is contained in:
parent
fe3403c8f0
commit
cbf3224180
4 changed files with 26 additions and 8 deletions
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
#include "crypto/hash.h"
|
||||
|
@ -58,4 +59,6 @@ namespace cryptonote
|
|||
bool check_hash_128(const crypto::hash &hash, difficulty_type difficulty);
|
||||
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);
|
||||
|
||||
std::string hex(difficulty_type v);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue