Fix logging in PushInventory (#1847)

Merge conflict resolution went wrong here. It showed filtered in case it
was pushed and nothing in case it was filtered.
This commit is contained in:
Alexander Block 2018-01-11 02:59:25 +01:00 committed by UdjinM6
parent 94e891c020
commit 3aad9d9085

View File

@ -883,8 +883,10 @@ public:
LOCK(cs_inventory);
if (inv.type == MSG_TX) {
if (!filterInventoryKnown.contains(inv.hash)) {
LogPrint("net", "PushInventory -- filtered inv: %s peer=%d\n", inv.ToString(), id);
LogPrint("net", "PushInventory -- inv: %s peer=%d\n", inv.ToString(), id);
setInventoryTxToSend.insert(inv.hash);
} else {
LogPrint("net", "PushInventory -- filtered inv: %s peer=%d\n", inv.ToString(), id);
}
} else if (inv.type == MSG_BLOCK) {
LogPrint("net", "PushInventory -- inv: %s peer=%d\n", inv.ToString(), id);