diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-29 04:31:58 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-29 04:32:33 +0000 |
commit | 218a109677914c69797d5ed55167d973b8837fde (patch) | |
tree | df86184bdfc67f7a889518bdf1191281e143c90a /src/rpc/daemon_handler.cpp | |
parent | Merge pull request #7193 (diff) | |
download | monero-218a109677914c69797d5ed55167d973b8837fde.tar.xz |
rpc: limit the number of txes for get_blocks.bin
Diffstat (limited to '')
-rw-r--r-- | src/rpc/daemon_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp index e256322cb..cdfc363a9 100644 --- a/src/rpc/daemon_handler.cpp +++ b/src/rpc/daemon_handler.cpp @@ -128,7 +128,7 @@ namespace rpc { std::vector<std::pair<std::pair<blobdata, crypto::hash>, std::vector<std::pair<crypto::hash, blobdata> > > > blocks; - if(!m_core.find_blockchain_supplement(req.start_height, req.block_ids, blocks, res.current_height, res.start_height, req.prune, true, COMMAND_RPC_GET_BLOCKS_FAST_MAX_COUNT)) + if(!m_core.find_blockchain_supplement(req.start_height, req.block_ids, blocks, res.current_height, res.start_height, req.prune, true, COMMAND_RPC_GET_BLOCKS_FAST_MAX_BLOCK_COUNT, COMMAND_RPC_GET_BLOCKS_FAST_MAX_TX_COUNT)) { res.status = Message::STATUS_FAILED; res.error_details = "core::find_blockchain_supplement() returned false"; |