Skip to content

Commit

Permalink
Merge pull request #2451 from barton2526/inbound
Browse files Browse the repository at this point in the history
net: Do not add random inbound peers to addrman
  • Loading branch information
jamescowens authored Mar 6, 2022
2 parents 27571e6 + ff1b1d2 commit b49b102
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3081,14 +3081,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
pfrom->fGetAddr = true;
addrman.Good(pfrom->addr);
}
else
{
if (((CNetAddr)pfrom->addr) == (CNetAddr)addrFrom)
{
addrman.Add(addrFrom, addrFrom);
addrman.Good(addrFrom);
}
}


// Ask the first connected node for block updates
Expand Down

0 comments on commit b49b102

Please sign in to comment.