Merge pull request #2735

a524b750 rpc: added miner_tx_hash to resp of getblock (stoffu)
This commit is contained in:
Riccardo Spagni
2017-11-14 15:27:51 +02:00
2 changed files with 4 additions and 1 deletions

View File

@@ -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]));