mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
MemoryPool: Clarify logging a bit.
This commit is contained in:
parent
5eebca2c7d
commit
21ba7e0260
1 changed files with 3 additions and 3 deletions
|
@ -245,7 +245,7 @@ public class MemoryPool {
|
||||||
Transaction tx = entry.tx.get();
|
Transaction tx = entry.tx.get();
|
||||||
if (tx != null) {
|
if (tx != null) {
|
||||||
markBroadcast(byPeer, tx);
|
markBroadcast(byPeer, tx);
|
||||||
log.debug("{}: Announced transaction we have seen before [{}] {}",
|
log.debug("{}: Peer announced transaction we have seen before [{}] {}",
|
||||||
new Object[]{byPeer, tx.getConfidence().numBroadcastPeers(), tx.getHashAsString()});
|
new Object[]{byPeer, tx.getConfidence().numBroadcastPeers(), tx.getHashAsString()});
|
||||||
} else {
|
} else {
|
||||||
// The inv is telling us about a transaction that we previously downloaded, and threw away because
|
// The inv is telling us about a transaction that we previously downloaded, and threw away because
|
||||||
|
@ -254,7 +254,7 @@ public class MemoryPool {
|
||||||
} else {
|
} else {
|
||||||
checkNotNull(entry.addresses);
|
checkNotNull(entry.addresses);
|
||||||
entry.addresses.add(byPeer);
|
entry.addresses.add(byPeer);
|
||||||
log.debug("{}: Announced transaction we have seen announced before [{}] {}",
|
log.debug("{}: Peer announced transaction we have seen announced before [{}] {}",
|
||||||
new Object[]{byPeer, entry.addresses.size(), hash});
|
new Object[]{byPeer, entry.addresses.size(), hash});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -264,7 +264,7 @@ public class MemoryPool {
|
||||||
entry.addresses = new HashSet<PeerAddress>();
|
entry.addresses = new HashSet<PeerAddress>();
|
||||||
entry.addresses.add(byPeer);
|
entry.addresses.add(byPeer);
|
||||||
memoryPool.put(hash, entry);
|
memoryPool.put(hash, entry);
|
||||||
log.info("{}: Announced new transaction [1] {}", byPeer, hash);
|
log.info("{}: Peer announced new transaction [1] {}", byPeer, hash);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
|
Loading…
Add table
Reference in a new issue