Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 1,401 Lines • ▼ Show 20 Lines | else if (strCommand == NetMsgType::VERSION) { | ||||
CNetMsgMaker(INIT_PROTO_VERSION) | CNetMsgMaker(INIT_PROTO_VERSION) | ||||
.Make(NetMsgType::REJECT, strCommand, REJECT_OBSOLETE, | .Make(NetMsgType::REJECT, strCommand, REJECT_OBSOLETE, | ||||
strprintf("Version must be %d or greater", | strprintf("Version must be %d or greater", | ||||
MIN_PEER_PROTO_VERSION))); | MIN_PEER_PROTO_VERSION))); | ||||
pfrom->fDisconnect = true; | pfrom->fDisconnect = true; | ||||
return false; | return false; | ||||
} | } | ||||
if (nVersion == 10300) nVersion = 300; | |||||
if (!vRecv.empty()) vRecv >> addrFrom >> nNonce; | if (!vRecv.empty()) vRecv >> addrFrom >> nNonce; | ||||
if (!vRecv.empty()) { | if (!vRecv.empty()) { | ||||
vRecv >> LIMITED_STRING(strSubVer, MAX_SUBVERSION_LENGTH); | vRecv >> LIMITED_STRING(strSubVer, MAX_SUBVERSION_LENGTH); | ||||
cleanSubVer = SanitizeString(strSubVer); | cleanSubVer = SanitizeString(strSubVer); | ||||
} | } | ||||
if (!vRecv.empty()) { | if (!vRecv.empty()) { | ||||
vRecv >> nStartingHeight; | vRecv >> nStartingHeight; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,243 Lines • Show Last 20 Lines |