forked from lthn/blockchain
changed difficulty type to string(to avoid uint64 overflow)
This commit is contained in:
parent
f6e3916904
commit
4d498a6d0e
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -791,7 +791,7 @@ namespace currency
|
|||
|
||||
struct response
|
||||
{
|
||||
uint64_t difficulty;
|
||||
std::string difficulty;
|
||||
uint64_t height;
|
||||
crypto::hash seed;
|
||||
blobdata blocktemplate_blob;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue