diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-08-05 15:42:30 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-08-05 15:43:10 +0200 |
| commit | c3848000277d5ab6b5f5faecb1d21b89374ef999 (patch) | |
| tree | ea62f8f84cfe6c7d7b11189e048969399d80b6ae /src/net.h | |
| parent | Merge pull request #6489 (diff) | |
| parent | limit total length of user agent comments (diff) | |
| download | discoin-c3848000277d5ab6b5f5faecb1d21b89374ef999.tar.xz discoin-c3848000277d5ab6b5f5faecb1d21b89374ef999.zip | |
Merge pull request #6462
7b79cbd limit total length of user agent comments (Pavol Rusnak)
557f8ea implement uacomment config parameter which can add comments to user agent as per BIP-0014 (Pavol Rusnak)
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -46,6 +46,8 @@ static const unsigned int MAX_INV_SZ = 50000; 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 strSubVer in `version` message */ +static const unsigned int MAX_SUBVERSION_LENGTH = 256; /** -listen default */ static const bool DEFAULT_LISTEN = true; /** -upnp default */ @@ -168,6 +170,9 @@ extern CCriticalSection cs_vAddedNodes; extern NodeId nLastNodeId; extern CCriticalSection cs_nLastNodeId; +/** Subversion as sent to the P2P network in `version` messages */ +extern std::string strSubVersion; + struct LocalServiceInfo { int nScore; int nPort; |