add blockhashing blob to getblocktemplate

This commit is contained in:
Howard Chu
2016-03-30 02:50:51 +01:00
committed by hyc
parent 0ee87e6305
commit 8757e46b78
2 changed files with 4 additions and 0 deletions

View File

@@ -627,8 +627,10 @@ namespace cryptonote
LOG_ERROR("Failed to calculate offset for ");
return false;
}
blobdata hashing_blob = get_block_hashing_blob(b);
res.prev_hash = string_tools::pod_to_hex(b.prev_id);
res.blocktemplate_blob = string_tools::buff_to_hex_nodelimer(block_blob);
res.blockhashing_blob = string_tools::buff_to_hex_nodelimer(hashing_blob);
res.status = CORE_RPC_STATUS_OK;
return true;
}