Skip to content

Commit

Permalink
Merge pull request #4341
Browse files Browse the repository at this point in the history
e611728 daemon: request no PoW hashes we don't need when asking for blocks (moneromooo-monero)
  • Loading branch information
fluffypony committed Sep 18, 2018
2 parents 22a6591 + e611728 commit 7ab49f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/daemon/rpc_command_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ bool t_rpc_command_executor::print_blockchain_info(uint64_t start_block_index, u

req.start_height = start_block_index;
req.end_height = end_block_index;
req.fill_pow_hash = false;

std::string fail_message = "Unsuccessful";

Expand Down Expand Up @@ -1746,6 +1747,7 @@ bool t_rpc_command_executor::print_blockchain_dynamic_stats(uint64_t nblocks)

bhreq.start_height = ires.height - nblocks;
bhreq.end_height = ires.height - 1;
bhreq.fill_pow_hash = false;
if (m_is_rpc)
{
if (!m_rpc_client->json_rpc_request(bhreq, bhres, "getblockheadersrange", fail_message.c_str()))
Expand Down

0 comments on commit 7ab49f9

Please sign in to comment.