diff --git a/core/src/main/java/com/google/bitcoin/core/MemoryPool.java b/core/src/main/java/com/google/bitcoin/core/MemoryPool.java index ff6eb0ef..cce5aea1 100644 --- a/core/src/main/java/com/google/bitcoin/core/MemoryPool.java +++ b/core/src/main/java/com/google/bitcoin/core/MemoryPool.java @@ -114,7 +114,6 @@ public class MemoryPool { // Find which transaction got deleted by the GC. WeakTransactionReference txRef = (WeakTransactionReference) ref; // And remove the associated map entry so the other bits of memory can also be reclaimed. - log.info("Cleaned up tx {}", txRef.hash); memoryPool.remove(txRef.hash); } } @@ -184,7 +183,7 @@ public class MemoryPool { confidence.markBroadcastBy(a); } entry.addresses = null; - log.info("{}: Adding tx [{}] {} to the memory pool", + log.debug("{}: Adding tx [{}] {} to the memory pool", new Object[] { byPeer, confidence.numBroadcastPeers(), tx.getHashAsString() }); return tx; } @@ -213,7 +212,7 @@ public class MemoryPool { Transaction tx = entry.tx.get(); if (tx != null) { tx.getConfidence().markBroadcastBy(byPeer); - log.info("{}: Announced transaction we have seen before [{}] {}", + log.debug("{}: Announced transaction we have seen before [{}] {}", new Object[] { byPeer, tx.getConfidence().numBroadcastPeers(), tx.getHashAsString() }); } else { // The inv is telling us about a transaction that we previously downloaded, and threw away because @@ -222,7 +221,7 @@ public class MemoryPool { } else { Preconditions.checkNotNull(entry.addresses); entry.addresses.add(byPeer); - log.info("{}: Announced transaction we have seen announced before [{}] {}", + log.debug("{}: Announced transaction we have seen announced before [{}] {}", new Object[] { byPeer, entry.addresses.size(), hash }); } } else { diff --git a/core/src/main/java/com/google/bitcoin/core/Peer.java b/core/src/main/java/com/google/bitcoin/core/Peer.java index 6fdc20ef..a3e6ee4d 100644 --- a/core/src/main/java/com/google/bitcoin/core/Peer.java +++ b/core/src/main/java/com/google/bitcoin/core/Peer.java @@ -334,7 +334,7 @@ public class Peer { } private synchronized void processTransaction(Transaction tx) { - log.info("{}: Received broadcast tx {}", address, tx.getHashAsString()); + log.debug("{}: Received broadcast tx {}", address, tx.getHashAsString()); if (memoryPool != null) { // We may get back a different transaction object. tx = memoryPool.seen(tx, getAddress()); @@ -451,7 +451,7 @@ public class Peer { // Some other peer already announced this so don't download. it.remove(); } else { - log.info("{}: getdata on tx {}", address, item.hash); + log.debug("{}: getdata on tx {}", address, item.hash); getdata.addItem(item); } memoryPool.seen(item.hash, this.getAddress());