diff --git a/core/src/main/java/org/bitcoinj/core/PeerGroup.java b/core/src/main/java/org/bitcoinj/core/PeerGroup.java index d36c81f1a..8f9088fda 100644 --- a/core/src/main/java/org/bitcoinj/core/PeerGroup.java +++ b/core/src/main/java/org/bitcoinj/core/PeerGroup.java @@ -1281,8 +1281,8 @@ public class PeerGroup implements TransactionBroadcaster { } /** - * Returns the number of currently connected peers. To be informed when this count changes, register a - * {@link PeerConnectionEventListener} and use the onPeerConnected/onPeerDisconnected methods. + * Returns the number of currently connected peers. To be informed when this count changes, use + * {@link PeerConnectedEventListener#onPeerConnected} and {@link PeerDisconnectedEventListener#onPeerDisconnected}. */ public int numConnectedPeers() { return peers.size(); diff --git a/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java b/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java index 00c6fa676..20d939893 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java +++ b/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java @@ -223,9 +223,9 @@ public class TransactionConfidence { * *

Note that this is NOT called when every block arrives. Instead it is called when the transaction * transitions between confidence states, ie, from not being seen in the chain to being seen (not necessarily in - * the best chain). If you want to know when the transaction gets buried under another block, implement a - * {@link BlockChainListener}, attach it to a {@link BlockChain} and then use the getters on the - * confidence object to determine the new depth.

+ * the best chain). If you want to know when the transaction gets buried under another block, implement + * {@link org.bitcoinj.core.listeners.NewBestBlockListener} and related listeners, attach them to a + * {@link BlockChain} and then use the getters on the confidence object to determine the new depth.

*/ public void addEventListener(Listener listener) { addEventListener(Threading.USER_THREAD, listener);