From c7937c202e292cd6af2da0a471d01ce9231eedde Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Wed, 27 Dec 2017 14:07:19 +0100 Subject: [PATCH] Remove unnecessary call to AddInventoryKnown in INV message handling This should have been part of Bitcoin #7960 but was missed in merge conflict resolution. --- src/net_processing.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 69337f8aa7..ff2bfe60d7 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -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);