Merge pull request #5402

cbf32241 rpc: make wide_difficulty hexadecimal (moneromooo-monero)
This commit is contained in:
Riccardo Spagni
2019-04-15 09:18:10 +02:00
4 changed files with 26 additions and 8 deletions

View File

@@ -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>();
}
}