aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-08-05 15:42:30 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-08-05 15:43:10 +0200
commitc3848000277d5ab6b5f5faecb1d21b89374ef999 (patch)
treeea62f8f84cfe6c7d7b11189e048969399d80b6ae /src/net.cpp
parentc9c017adf6a7b78f609f5fc61fd91dfa2e3d9662 (diff)
parent7b79cbd722d35b8113d5136b06d4a8e5fd569fc6 (diff)
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.cpp')
-rw-r--r--src/net.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 5d413697bf..e4ead3c92e 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -83,6 +83,7 @@ CAddrMan addrman;
int nMaxConnections = DEFAULT_MAX_PEER_CONNECTIONS;
int nWhiteConnections = 0;
bool fAddressesInitialized = false;
+std::string strSubVersion;
vector<CNode*> vNodes;
CCriticalSection cs_vNodes;
@@ -445,7 +446,7 @@ void CNode::PushVersion()
else
LogPrint("net", "send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString(), id);
PushMessage("version", PROTOCOL_VERSION, nLocalServices, nTime, addrYou, addrMe,
- nLocalHostNonce, FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, std::vector<string>()), nBestHeight, true);
+ nLocalHostNonce, strSubVersion, nBestHeight, true);
}