Skip to content

Commit

Permalink
Increase MAX_PROTOCOL_MESSAGE_LENGTH
Browse files Browse the repository at this point in the history
Witness blocks can be greater than 2MiB, but cannot be validly greater
than 4MB.
  • Loading branch information
sdaftuar authored and sipa committed Apr 14, 2016
1 parent fd9390f commit 4d90727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ static const int TIMEOUT_INTERVAL = 20 * 60;
static const unsigned int MAX_INV_SZ = 50000;
/** The maximum number of new addresses to accumulate before announcing. */
static const unsigned int MAX_ADDR_TO_SEND = 1000;
/** Maximum length of incoming protocol messages (no message over 2 MiB is currently acceptable). */
static const unsigned int MAX_PROTOCOL_MESSAGE_LENGTH = 2 * 1024 * 1024;
/** Maximum length of incoming protocol messages (no message over 4 MB is currently acceptable). */
static const unsigned int MAX_PROTOCOL_MESSAGE_LENGTH = 4 * 1000 * 1000;
/** Maximum length of strSubVer in `version` message */
static const unsigned int MAX_SUBVERSION_LENGTH = 256;
/** -listen default */
Expand Down

0 comments on commit 4d90727

Please sign in to comment.