diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-10 19:26:12 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-10 19:26:50 +0000 |
commit | ef1524eccacb9acb62ddbf674f9ad1d0ffb2b588 (patch) | |
tree | 50966a25cb5b0214d06bc2071c43c576bf4ff702 /src/cryptonote_config.h | |
parent | Merge pull request #7010 (diff) | |
download | monero-ef1524eccacb9acb62ddbf674f9ad1d0ffb2b588.tar.xz |
protocol: add a sanity check to the number of block hashes sent
Diffstat (limited to 'src/cryptonote_config.h')
-rw-r--r-- | src/cryptonote_config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 826cabe17..6b841e2bd 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -93,6 +93,7 @@ #define BLOCKS_IDS_SYNCHRONIZING_DEFAULT_COUNT 10000 //by default, blocks ids count in synchronizing +#define BLOCKS_IDS_SYNCHRONIZING_MAX_COUNT 25000 //max blocks ids count in synchronizing #define BLOCKS_SYNCHRONIZING_DEFAULT_COUNT_PRE_V4 100 //by default, blocks count in blocks downloading #define BLOCKS_SYNCHRONIZING_DEFAULT_COUNT 20 //by default, blocks count in blocks downloading #define BLOCKS_SYNCHRONIZING_MAX_COUNT 2048 //must be a power of 2, greater than 128, equal to SEEDHASH_EPOCH_BLOCKS |