Merge pull request #6259

69336931 rpc: fill miner_tx_hash again (moneromooo-monero)
This commit is contained in:
Alexander Blair 2020-02-28 19:51:15 -08:00
commit f3fddd935f
No known key found for this signature in database
GPG Key ID: C64552D877C32479

View File

@ -2216,6 +2216,7 @@ namespace cryptonote
error_resp.message = "Internal error: can't produce valid response."; error_resp.message = "Internal error: can't produce valid response.";
return false; return false;
} }
res.miner_tx_hash = res.block_header.miner_tx_hash;
for (size_t n = 0; n < blk.tx_hashes.size(); ++n) 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])); res.tx_hashes.push_back(epee::string_tools::pod_to_hex(blk.tx_hashes[n]));