diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-21 00:23:23 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-21 00:24:12 +0000 |
commit | dc20d774595f95deaed30217711ff3d0ae427219 (patch) | |
tree | 5f7ecef82240b9473afd7420b7b347eec2765c49 /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #5201 (diff) | |
download | monero-dc20d774595f95deaed30217711ff3d0ae427219.tar.xz |
rpc: add miner tx hash to block header response
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | 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 ff55167fe..2475eda7b 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1382,6 +1382,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; } //------------------------------------------------------------------------------------------------------------------------------ |