Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-griffith committed Jun 21, 2017
2 parents 6301467 + 10604c7 commit fd8b721
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions src/messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,14 +735,6 @@ bool ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStream& vR
LogPrintf("finished processing version message \n");
}


else if (pfrom->nVersion == 0)
{
pfrom->Misbehaving(1);
return false;
}


else if (strCommand == NetMsgType::VERACK)
{
pfrom->vRecv.SetVersion(min(pfrom->nVersion, PROTOCOL_VERSION));
Expand Down Expand Up @@ -770,8 +762,9 @@ bool ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStream& vR

else if (!pfrom->fSuccessfullyConnected)
{
///dont ban just ignore for now
// Must have a verack message before anything else
pfrom->Misbehaving(1);
//pfrom->Misbehaving(1);
return false;
}

Expand All @@ -798,25 +791,6 @@ bool ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStream& vR
if (fShutdown)
return true;

//###################
//###################
//###################
//###################
//###################
//###################
//###################
//###################
//###################
//###################
//possibly dont need
if ((addr.nServices & REQUIRED_SERVICES) != REQUIRED_SERVICES)
continue;
//###################
//###################
//###################
//###################
//###################

if (addr.nTime <= 100000000 || addr.nTime > nNow + 10 * 60)
addr.nTime = nNow - 5 * 24 * 60 * 60;

Expand Down

0 comments on commit fd8b721

Please sign in to comment.