rpc: added miner_tx_hash to resp of getblock

This commit is contained in:
stoffu
2017-11-14 16:31:46 +09:00
parent af448d3883
commit a524b7508e
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -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]));