diff --git a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java index 2dbf2d7d2..581b62b64 100644 --- a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java +++ b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java @@ -117,7 +117,7 @@ public class PeerGroup { // this is. this.versionMessage = new VersionMessage(params, chain.getBestChainHeight()); - this.memoryPool = new MemoryPool(); + memoryPool = new MemoryPool(); inactives = new LinkedBlockingQueue(); // TODO: Remove usage of synchronized sets here in favor of simple coarse-grained locking. @@ -130,9 +130,6 @@ public class PeerGroup { THREAD_KEEP_ALIVE_SECONDS, TimeUnit.SECONDS, new LinkedBlockingQueue(1), new PeerGroupThreadFactory()); - // peerEventListeners get a subset of events seen by the group. We add our own internal listener to this so - // when we download a transaction, we can distribute it to each Peer in the pool so they can update the - // transactions confidence level if they've seen it be announced/when they see it be announced. peerEventListeners = new ArrayList(); // This event listener is added to every peer. It's here so when we announce transactions via an "inv", every // peer can fetch them. diff --git a/core/src/main/java/com/google/bitcoin/core/Wallet.java b/core/src/main/java/com/google/bitcoin/core/Wallet.java index 463f30656..fcc72e22f 100644 --- a/core/src/main/java/com/google/bitcoin/core/Wallet.java +++ b/core/src/main/java/com/google/bitcoin/core/Wallet.java @@ -1554,7 +1554,7 @@ public class Wallet implements Serializable { private transient PeerEventListener peerEventListener; /** - * Use the returned object can be used to connect the wallet to a {@link Peer} or {@link PeerGroup} in order to + * The returned object can be used to connect the wallet to a {@link Peer} or {@link PeerGroup} in order to * receive and process blocks and transactions. */ public synchronized PeerEventListener getPeerEventListener() {