diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-05 09:41:07 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-05 09:43:44 +0000 |
commit | e6117282284032cd759783a3dee2cf22225588d0 (patch) | |
tree | 0dc1631b40b23e69b0a55a2182eceaefdedfc17d /src/daemon/rpc_command_executor.cpp | |
parent | Merge pull request #4290 (diff) | |
download | monero-e6117282284032cd759783a3dee2cf22225588d0.tar.xz |
daemon: request no PoW hashes we don't need when asking for blocks
This fixes the horrendous slowdown in bc_dyn_stats
Diffstat (limited to 'src/daemon/rpc_command_executor.cpp')
-rw-r--r-- | src/daemon/rpc_command_executor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index 45ba81e16..a3946ab75 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -532,6 +532,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"; @@ -1743,6 +1744,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())) |