Comment fixes

This commit is contained in:
Mike Hearn 2012-04-05 00:58:51 +02:00
parent d82f102b4b
commit 6c1e3aa49a
2 changed files with 2 additions and 5 deletions

View File

@ -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<PeerAddress>();
// 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<Runnable>(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<PeerEventListener>();
// This event listener is added to every peer. It's here so when we announce transactions via an "inv", every
// peer can fetch them.

View File

@ -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() {