diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-05 16:28:15 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-05 16:30:16 +0000 |
| commit | cbf3224180380d7ff2b4fc28b3800486f22a1cc7 (patch) | |
| tree | 9f2d6b4de0d6e2dc3e2e30c4472fe1d19d97a4ed /src/rpc | |
| parent | fe3403c8f01e1b8207b4cb8f085c809c7a8e1a1d (diff) | |
| download | monzero-core-cbf3224180380d7ff2b4fc28b3800486f22a1cc7.tar.gz monzero-core-cbf3224180380d7ff2b4fc28b3800486f22a1cc7.tar.xz monzero-core-cbf3224180380d7ff2b4fc28b3800486f22a1cc7.zip | |
rpc: make wide_difficulty hexadecimal
This should be friendlier for clients which don't have bignum support
Diffstat (limited to 'src/rpc')
| -rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index f5f1a2f9a..8c201097e 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -74,7 +74,7 @@ namespace void store_difficulty(cryptonote::difficulty_type difficulty, uint64_t &sdiff, std::string &swdiff, uint64_t &stop64) { sdiff = (difficulty << 64 >> 64).convert_to<uint64_t>(); - swdiff = difficulty.convert_to<std::string>(); + swdiff = cryptonote::hex(difficulty); stop64 = (difficulty >> 64).convert_to<uint64_t>(); } } |
