p2p: Remove dead code for nVersion=10300
This commit is contained in:
parent
17d644901b
commit
fa5099ceb7
2 changed files with 1 additions and 6 deletions
|
@ -1662,8 +1662,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nVersion < MIN_PEER_PROTO_VERSION)
|
if (nVersion < MIN_PEER_PROTO_VERSION) {
|
||||||
{
|
|
||||||
// disconnect from peers older than this proto version
|
// disconnect from peers older than this proto version
|
||||||
LogPrint(BCLog::NET, "peer=%d using obsolete version %i; disconnecting\n", pfrom->GetId(), nVersion);
|
LogPrint(BCLog::NET, "peer=%d using obsolete version %i; disconnecting\n", pfrom->GetId(), nVersion);
|
||||||
if (enable_bip61) {
|
if (enable_bip61) {
|
||||||
|
@ -1674,8 +1673,6 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nVersion == 10300)
|
|
||||||
nVersion = 300;
|
|
||||||
if (!vRecv.empty())
|
if (!vRecv.empty())
|
||||||
vRecv >> addrFrom >> nNonce;
|
vRecv >> addrFrom >> nNonce;
|
||||||
if (!vRecv.empty()) {
|
if (!vRecv.empty()) {
|
||||||
|
|
|
@ -904,8 +904,6 @@ class msg_version():
|
||||||
|
|
||||||
def deserialize(self, f):
|
def deserialize(self, f):
|
||||||
self.nVersion = struct.unpack("<i", f.read(4))[0]
|
self.nVersion = struct.unpack("<i", f.read(4))[0]
|
||||||
if self.nVersion == 10300:
|
|
||||||
self.nVersion = 300
|
|
||||||
self.nServices = struct.unpack("<Q", f.read(8))[0]
|
self.nServices = struct.unpack("<Q", f.read(8))[0]
|
||||||
self.nTime = struct.unpack("<q", f.read(8))[0]
|
self.nTime = struct.unpack("<q", f.read(8))[0]
|
||||||
self.addrTo = CAddress()
|
self.addrTo = CAddress()
|
||||||
|
|
Loading…
Reference in a new issue