diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-11-14 15:27:51 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-11-14 15:27:51 +0200 |
commit | e759c78a179b83d198f2fce050dd9abeb4c3d5c0 (patch) | |
tree | 523cb244985496583121240d7f917956e9121263 /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #2730 (diff) | |
parent | rpc: added miner_tx_hash to resp of getblock (diff) | |
download | monero-e759c78a179b83d198f2fce050dd9abeb4c3d5c0.tar.xz |
Merge pull request #2735
a524b750 rpc: added miner_tx_hash to resp of getblock (stoffu)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rwxr-xr-x | src/rpc/core_rpc_server.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 9094ec732..776b8c5c0 100755 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1307,6 +1307,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])); |