mirror of
https://github.com/monero-project/monero.git
synced 2025-07-25 10:15:21 -04:00
Core RPC: optionally add POW hash to block_header_response
This commit is contained in:
parent
8361d60aef
commit
353e9c0c90
4 changed files with 25 additions and 8 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue