mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
Comment fixes
This commit is contained in:
parent
d82f102b4b
commit
6c1e3aa49a
@ -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.
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user