aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_config.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-29 04:31:58 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-29 04:32:33 +0000
commit218a109677914c69797d5ed55167d973b8837fde (patch)
treedf86184bdfc67f7a889518bdf1191281e143c90a /src/cryptonote_config.h
parentMerge pull request #7193 (diff)
downloadmonero-218a109677914c69797d5ed55167d973b8837fde.tar.xz
rpc: limit the number of txes for get_blocks.bin
Diffstat (limited to '')
-rw-r--r--src/cryptonote_config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h
index 97706f745..2cb28b2b1 100644
--- a/src/cryptonote_config.h
+++ b/src/cryptonote_config.h
@@ -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