From 8757e46b78f2778261dd7b047666b3d8ccc86ae6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 30 Mar 2016 02:50:51 +0100 Subject: add blockhashing blob to getblocktemplate --- src/rpc/core_rpc_server.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rpc/core_rpc_server.cpp') 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; } -- cgit v1.2.3