Skip to content

Commit fa5099c

Browse files
author
MarcoFalke
committed
p2p: Remove dead code for nVersion=10300
1 parent 17d6449 commit fa5099c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,8 +1662,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
16621662
return false;
16631663
}
16641664

1665-
if (nVersion < MIN_PEER_PROTO_VERSION)
1666-
{
1665+
if (nVersion < MIN_PEER_PROTO_VERSION) {
16671666
// disconnect from peers older than this proto version
16681667
LogPrint(BCLog::NET, "peer=%d using obsolete version %i; disconnecting\n", pfrom->GetId(), nVersion);
16691668
if (enable_bip61) {
@@ -1674,8 +1673,6 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
16741673
return false;
16751674
}
16761675

1677-
if (nVersion == 10300)
1678-
nVersion = 300;
16791676
if (!vRecv.empty())
16801677
vRecv >> addrFrom >> nNonce;
16811678
if (!vRecv.empty()) {

test/functional/test_framework/messages.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,6 @@ def __init__(self):
904904

905905
def deserialize(self, f):
906906
self.nVersion = struct.unpack("<i", f.read(4))[0]
907-
if self.nVersion == 10300:
908-
self.nVersion = 300
909907
self.nServices = struct.unpack("<Q", f.read(8))[0]
910908
self.nTime = struct.unpack("<q", f.read(8))[0]
911909
self.addrTo = CAddress()

0 commit comments

Comments
 (0)