aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-18 17:39:56 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-18 17:39:56 +0200
commit7ab49f96adad6ff05d4c860c9c9a777cf9b182c6 (patch)
tree8f26f4ab43a7ee40bb8625fe04d17634d2f930ca
parentMerge pull request #4325 (diff)
parentdaemon: request no PoW hashes we don't need when asking for blocks (diff)
downloadmonero-7ab49f96adad6ff05d4c860c9c9a777cf9b182c6.tar.xz
Merge pull request #4341
e6117282 daemon: request no PoW hashes we don't need when asking for blocks (moneromooo-monero)
-rw-r--r--src/daemon/rpc_command_executor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 9ab1be246..6b6c88907 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -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";
@@ -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()))