aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/difficulty.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-15 09:18:10 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-15 09:18:10 +0200
commit9bd0983d5eee1f422bad4d920ab78c70c8e6faeb (patch)
tree2e599a575c50a17043c279942a88468cce6098ab /src/cryptonote_basic/difficulty.h
parente31559d3199552adbf5c57216633405923148be4 (diff)
parentcbf3224180380d7ff2b4fc28b3800486f22a1cc7 (diff)
downloadmonzero-core-9bd0983d5eee1f422bad4d920ab78c70c8e6faeb.tar.gz
monzero-core-9bd0983d5eee1f422bad4d920ab78c70c8e6faeb.tar.xz
monzero-core-9bd0983d5eee1f422bad4d920ab78c70c8e6faeb.zip
Merge pull request #5402
cbf32241 rpc: make wide_difficulty hexadecimal (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic/difficulty.h')
-rw-r--r--src/cryptonote_basic/difficulty.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_basic/difficulty.h b/src/cryptonote_basic/difficulty.h
index f7a9376fb..02ed89e5a 100644
--- a/src/cryptonote_basic/difficulty.h
+++ b/src/cryptonote_basic/difficulty.h
@@ -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);
}