aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-01 17:31:36 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-01 17:31:36 +0200
commita69b71dc417a0c6acb4eab6126e2e1d4ea4c4d7f (patch)
treed94fa8be1ec9b8c4d2783e5043160bd577365ea6 /src/rpc/core_rpc_server.cpp
parentMerge pull request #5325 (diff)
parentrpc: add miner tx hash to block header response (diff)
downloadmonero-a69b71dc417a0c6acb4eab6126e2e1d4ea4c4d7f.tar.xz
Merge pull request #5326
dc20d774 rpc: add miner tx hash to block header response (moneromooo-monero)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/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 e6a09606b..7af62bfe0 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -1394,6 +1394,7 @@ namespace cryptonote
response.num_txes = blk.tx_hashes.size();
response.pow_hash = fill_pow_hash ? string_tools::pod_to_hex(get_block_longhash(blk, height)) : "";
response.long_term_weight = m_core.get_blockchain_storage().get_db().get_block_long_term_weight(height);
+ response.miner_tx_hash = string_tools::pod_to_hex(cryptonote::get_transaction_hash(blk.miner_tx));
return true;
}
//------------------------------------------------------------------------------------------------------------------------------