aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc_command_executor.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-04-05 23:15:15 +0900
committerstoffu <stoffu@protonmail.ch>2018-04-05 23:15:15 +0900
commit353e9c0c905b02918c346cf5edf43c994d2cc2b1 (patch)
tree4c0a9673cf5c1d92fc9ebd51248d34072cb90268 /src/daemon/rpc_command_executor.cpp
parentMerge pull request #3434 (diff)
downloadmonero-353e9c0c905b02918c346cf5edf43c994d2cc2b1.tar.xz
Core RPC: optionally add POW hash to block_header_response
Diffstat (limited to '')
-rw-r--r--src/daemon/rpc_command_executor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 73b8d1a18..b8ebf0fb9 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -74,6 +74,7 @@ namespace {
<< "depth: " << boost::lexical_cast<std::string>(header.depth) << std::endl
<< "hash: " << header.hash << std::endl
<< "difficulty: " << boost::lexical_cast<std::string>(header.difficulty) << std::endl
+ << "POW hash: " << header.pow_hash << std::endl
<< "reward: " << boost::lexical_cast<std::string>(header.reward);
}
@@ -654,6 +655,7 @@ bool t_rpc_command_executor::print_block_by_hash(crypto::hash block_hash) {
epee::json_rpc::error error_resp;
req.hash = epee::string_tools::pod_to_hex(block_hash);
+ req.fill_pow_hash = true;
std::string fail_message = "Unsuccessful";
@@ -685,6 +687,7 @@ bool t_rpc_command_executor::print_block_by_height(uint64_t height) {
epee::json_rpc::error error_resp;
req.height = height;
+ req.fill_pow_hash = true;
std::string fail_message = "Unsuccessful";