mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 20:50:26 -04:00
rpc: limit the number of txes for get_blocks.bin
This commit is contained in:
parent
2bccbeecb3
commit
1eb14af1a3
11 changed files with 32 additions and 22 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue