mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
Merge pull request #4341
e6117282
daemon: request no PoW hashes we don't need when asking for blocks (moneromooo-monero)
This commit is contained in:
commit
7ab49f96ad
1 changed files with 2 additions and 0 deletions
|
@ -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()))
|
||||
|
|
Loading…
Reference in a new issue