diff --git a/src/main/java/org/peergos/protocol/bitswap/BitswapEngine.java b/src/main/java/org/peergos/protocol/bitswap/BitswapEngine.java index 1c430e28..adc8e04f 100644 --- a/src/main/java/org/peergos/protocol/bitswap/BitswapEngine.java +++ b/src/main/java/org/peergos/protocol/bitswap/BitswapEngine.java @@ -175,6 +175,9 @@ public void receiveMessage(MessageOuterClass.Message msg, Stream source) { .build(); presences.add(presence); messageSize += presence.getSerializedSize(); + } else if (block.isPresent()) { + deniedWants.put(w, true); + LOG.info("Rejecting repeated invalid auth for block " + c + " from " + sourcePeerId.bareMultihash()); } } else { boolean hasBlock = store.has(c).join();