diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-17 14:01:28 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-19 10:34:05 +0000 |
commit | bbab044c929ce1a690873c185b24c00708914831 (patch) | |
tree | 98c35d80a9ccd3c2c5c0c6b2d0dd1d8cfc38a8f8 | |
parent | cryptonote_protocol: reject requests/notifications before handshake (diff) | |
download | monero-bbab044c929ce1a690873c185b24c00708914831.tar.xz |
cryptonote_protocol: stricter limit to number of objects requested
Reported by xnbya
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.h b/src/cryptonote_protocol/cryptonote_protocol_handler.h index e2ad3727f..3055474ef 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.h +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.h @@ -51,7 +51,8 @@ PUSH_WARNINGS DISABLE_VS_WARNINGS(4355) #define LOCALHOST_INT 2130706433 -#define CURRENCY_PROTOCOL_MAX_OBJECT_REQUEST_COUNT 500 +#define CURRENCY_PROTOCOL_MAX_OBJECT_REQUEST_COUNT 100 +static_assert(CURRENCY_PROTOCOL_MAX_OBJECT_REQUEST_COUNT >= BLOCKS_SYNCHRONIZING_DEFAULT_COUNT_PRE_V4, "Invalid CURRENCY_PROTOCOL_MAX_OBJECT_REQUEST_COUNT"); namespace cryptonote { |