Skip to content

Commit

Permalink
Merge pull request #196 from wqking/allow-70002-protocol
Browse files Browse the repository at this point in the history
Allow protocol 70002 for mobile connection
  • Loading branch information
tohsnoom committed Oct 26, 2021
2 parents 62faef0 + 2d8e624 commit 0e34572
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net.cpp
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 0e34572

Please sign in to comment.