Skip to content

Commit

Permalink
Don't talk to v1.4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
dooglus committed Feb 7, 2015
1 parent 731384e commit 0022ff9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3165,6 +3165,14 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
if (!vRecv.empty())
vRecv >> pfrom->nStartingHeight;

if (pfrom->strSubVer == "/Satoshi:1.4.4/")
{
// disconnect from peers running v1.4.4
LogPrintf("disconnecting %s\n", pfrom->strSubVer);
pfrom->fDisconnect = true;
return false;
}

pfrom->addrLocal = addrMe;
if (pfrom->fInbound && addrMe.IsRoutable())
SeenLocal(addrMe);
Expand Down

0 comments on commit 0022ff9

Please sign in to comment.