Skip to content

Commit

Permalink
Allow protocol 70002 for mobile connection
Browse files Browse the repository at this point in the history
  • Loading branch information
wqking committed Oct 26, 2021
1 parent 9c0cd6a commit 2d8e624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void CNode::CloseSocketDisconnect()
bool CNode::DisconnectOldProtocol(int nVersionRequired, string strLastCommand)
{
fDisconnect = false;
if (nVersion < nVersionRequired) {
if (nVersion < nVersionRequired && nVersion != 70002) {
LogPrintf("%s : peer=%d using obsolete version %i; disconnecting\n", __func__, id, nVersion);
PushMessage(NetMsgType::REJECT, strLastCommand, REJECT_OBSOLETE, strprintf("Version must be %d or greater", ActiveProtocol()));
fDisconnect = true;
Expand Down Expand Up @@ -1885,7 +1885,7 @@ void RelayInv(CInv& inv)
LOCK(cs_vNodes);
for (CNode* pnode : vNodes){
if((pnode->nServices==NODE_BLOOM_WITHOUT_MN) && inv.IsMasterNodeType())continue;
if (pnode->nVersion >= ActiveProtocol())
if (pnode->nVersion >= ActiveProtocol() || pnode->nVersion == 70002)
pnode->PushInventory(inv);
}
}
Expand Down

0 comments on commit 2d8e624

Please sign in to comment.