mirror of
https://github.com/monero-project/monero.git
synced 2026-01-02 16:00:10 -08:00
rpc: make wide_difficulty hexadecimal
This should be friendlier for clients which don't have bignum support
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user