diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-15 09:18:10 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-15 09:18:10 +0200 |
commit | 9bd0983d5eee1f422bad4d920ab78c70c8e6faeb (patch) | |
tree | 2e599a575c50a17043c279942a88468cce6098ab /src/rpc | |
parent | Merge pull request #5398 (diff) | |
parent | rpc: make wide_difficulty hexadecimal (diff) | |
download | monero-9bd0983d5eee1f422bad4d920ab78c70c8e6faeb.tar.xz |
Merge pull request #5402
cbf32241 rpc: make wide_difficulty hexadecimal (moneromooo-monero)
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 71bfcc950..bd1455c43 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>(); } } |