Merge pull request #8275

9209880 add a sanity check to RPC input data size (moneromooo-monero)
This commit is contained in:
luigi1111 2022-04-25 10:22:03 -05:00
commit 67e5ca9ad6
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
4 changed files with 15 additions and 0 deletions

View file

@ -126,6 +126,7 @@
#define COMMAND_RPC_GET_BLOCKS_FAST_MAX_BLOCK_COUNT 1000
#define COMMAND_RPC_GET_BLOCKS_FAST_MAX_TX_COUNT 20000
#define MAX_RPC_CONTENT_LENGTH 1048576 // 1 MB
#define P2P_LOCAL_WHITE_PEERLIST_LIMIT 1000
#define P2P_LOCAL_GRAY_PEERLIST_LIMIT 5000