diff options
author | Howard Chu <hyc@symas.com> | 2016-03-30 02:50:51 +0100 |
---|---|---|
committer | hyc <hyc@symas.com> | 2016-03-30 16:54:36 +0100 |
commit | 8757e46b78f2778261dd7b047666b3d8ccc86ae6 (patch) | |
tree | bd41b89ee93736abc0d640b14f134b330e56dccf /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #770 (diff) | |
download | monero-8757e46b78f2778261dd7b047666b3d8ccc86ae6.tar.xz |
add blockhashing blob to getblocktemplate
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 5350b6fe0..7de4ca314 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -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; } |