1
0
Fork 0
forked from lthn/blockchain

changed difficulty type to string(to avoid uint64 overflow)

This commit is contained in:
crypro.zoidberg 2019-04-19 22:10:37 +02:00
parent f6e3916904
commit 4d498a6d0e
2 changed files with 2 additions and 2 deletions

View file

@ -804,7 +804,7 @@ namespace currency
LOG_ERROR("Failed to create block template");
return false;
}
res.difficulty = dt.convert_to<uint64_t>();
res.difficulty = dt.convert_to<std::string>();
blobdata block_blob = t_serializable_object_to_blob(b);
res.blocktemplate_blob = string_tools::buff_to_hex_nodelimer(block_blob);

View file

@ -791,7 +791,7 @@ namespace currency
struct response
{
uint64_t difficulty;
std::string difficulty;
uint64_t height;
crypto::hash seed;
blobdata blocktemplate_blob;