forked from lthn/blockchain
rpc: prev_hash added to getblocktemplate's response
This commit is contained in:
parent
43faf7d57d
commit
d785bb2e34
2 changed files with 3 additions and 0 deletions
|
|
@ -794,6 +794,7 @@ namespace currency
|
|||
blobdata block_blob = t_serializable_object_to_blob(b);
|
||||
|
||||
res.blocktemplate_blob = string_tools::buff_to_hex_nodelimer(block_blob);
|
||||
res.prev_hash = string_tools::pod_to_hex(b.prev_id);
|
||||
res.status = CORE_RPC_STATUS_OK;
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -792,6 +792,7 @@ namespace currency
|
|||
uint64_t height;
|
||||
crypto::hash seed;
|
||||
blobdata blocktemplate_blob;
|
||||
std::string prev_hash;
|
||||
std::string status;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
|
|
@ -799,6 +800,7 @@ namespace currency
|
|||
KV_SERIALIZE(height)
|
||||
KV_SERIALIZE_POD_AS_HEX_STRING(seed)
|
||||
KV_SERIALIZE(blocktemplate_blob)
|
||||
KV_SERIALIZE(prev_hash)
|
||||
KV_SERIALIZE(status)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue