aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2013-11-08 01:03:11 -0800
committerWladimir J. van der Laan <[email protected]>2013-11-08 01:03:11 -0800
commit9a165e57140eea0663253c14db0d14b40bde562a (patch)
tree26aa5885d5ec103024a7b1ca8413487f01d6fd3a /src/main.cpp
parentMerge pull request #3222 from Diapolo/debug-window (diff)
parentSplit MIN_PROTO_VERSION into INIT_PROTO_VERSION and MIN_PEER_PROTO_VERSION (diff)
downloaddiscoin-9a165e57140eea0663253c14db0d14b40bde562a.tar.xz
discoin-9a165e57140eea0663253c14db0d14b40bde562a.zip
Merge pull request #3155 from wtogami/split_proto_var
Split MIN_PROTO_VERSION into INIT_PROTO_VERSION and MIN_PEER_PROTO_VERSION
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a952bc270..145ff7857 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3202,10 +3202,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
CAddress addrFrom;
uint64 nNonce = 1;
vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe;
- if (pfrom->nVersion < MIN_PROTO_VERSION)
+ if (pfrom->nVersion < MIN_PEER_PROTO_VERSION)
{
- // Since February 20, 2012, the protocol is initiated at version 209,
- // and earlier versions are no longer supported
+ // disconnect from peers older than this proto version
LogPrintf("partner %s using obsolete version %i; disconnecting\n", pfrom->addr.ToString().c_str(), pfrom->nVersion);
pfrom->fDisconnect = true;
return false;