Remove unnecessary call to AddInventoryKnown in INV message handling

This should have been part of Bitcoin #7960 but was missed in merge
conflict resolution.
This commit is contained in:
Alexander Block 2017-12-27 14:07:19 +01:00
parent e3ca41b1cb
commit c7937c202e

View File

@ -1352,8 +1352,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
if (interruptMsgProc)
return true;
pfrom->AddInventoryKnown(inv);
bool fAlreadyHave = AlreadyHave(inv);
LogPrint("net", "got inv: %s %s peer=%d\n", inv.ToString(), fAlreadyHave ? "have" : "new", pfrom->id);