rpc: limit the number of txes for get_blocks.bin

This commit is contained in:
moneromooo-monero 2020-12-29 04:31:58 +00:00
parent 2bccbeecb3
commit 1eb14af1a3
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
11 changed files with 32 additions and 22 deletions

View file

@ -124,7 +124,8 @@
#define CRYPTONOTE_MAX_FRAGMENTS 20 // ~20 * NOISE_BYTES max payload size for covert/noise send
#define COMMAND_RPC_GET_BLOCKS_FAST_MAX_COUNT 1000
#define COMMAND_RPC_GET_BLOCKS_FAST_MAX_BLOCK_COUNT 1000
#define COMMAND_RPC_GET_BLOCKS_FAST_MAX_TX_COUNT 20000
#define P2P_LOCAL_WHITE_PEERLIST_LIMIT 1000
#define P2P_LOCAL_GRAY_PEERLIST_LIMIT 5000