aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-04-02 12:05:07 +0900
committerRiccardo Spagni <ric@spagni.net>2016-04-02 12:05:07 +0900
commitab43e803311c6f42b7ff50f7bfa02eb6bf4c42f9 (patch)
tree5ea48b6060838a0b020c01d3f38bedf58dd83359 /src/rpc/core_rpc_server.cpp
parentMerge pull request #774 (diff)
parentadd blockhashing blob to getblocktemplate (diff)
downloadmonero-ab43e803311c6f42b7ff50f7bfa02eb6bf4c42f9.tar.xz
Merge pull request #777
8757e46 add blockhashing blob to getblocktemplate (Howard Chu)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 2d2727a29..165a24c22 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -643,8 +643,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;
}