|
|
@ -3229,10 +3229,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) |
|
|
|
CAddress addrFrom; |
|
|
|
CAddress addrFrom; |
|
|
|
uint64 nNonce = 1; |
|
|
|
uint64 nNonce = 1; |
|
|
|
vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe; |
|
|
|
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,
|
|
|
|
// disconnect from peers older than this proto version
|
|
|
|
// and earlier versions are no longer supported
|
|
|
|
|
|
|
|
printf("partner %s using obsolete version %i; disconnecting\n", pfrom->addr.ToString().c_str(), pfrom->nVersion); |
|
|
|
printf("partner %s using obsolete version %i; disconnecting\n", pfrom->addr.ToString().c_str(), pfrom->nVersion); |
|
|
|
pfrom->fDisconnect = true; |
|
|
|
pfrom->fDisconnect = true; |
|
|
|
return false; |
|
|
|
return false; |
|
|
|