aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2017-10-28 23:25:47 +0900
committerstoffu <stoffu@protonmail.ch>2017-11-14 16:31:46 +0900
commita524b7508e14413ccfb3c0655a5330d416687453 (patch)
tree3c875e78b2374b83536cfd8077d8067541c2ae9f /src/rpc/core_rpc_server.cpp
parentMerge pull request #2694 (diff)
downloadmonero-a524b7508e14413ccfb3c0655a5330d416687453.tar.xz
rpc: added miner_tx_hash to resp of getblock
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rwxr-xr-xsrc/rpc/core_rpc_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index b3ce30d0c..1e3bf1b3a 100755
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -1280,6 +1280,7 @@ namespace cryptonote
error_resp.message = "Internal error: can't produce valid response.";
return false;
}
+ res.miner_tx_hash = epee::string_tools::pod_to_hex(cryptonote::get_transaction_hash(blk.miner_tx));
for (size_t n = 0; n < blk.tx_hashes.size(); ++n)
{
res.tx_hashes.push_back(epee::string_tools::pod_to_hex(blk.tx_hashes[n]));