3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 02:35:52 +00:00

PeerGroup, TransactionConfidence: Fix JavaDoc links.

This commit is contained in:
Sean Gilligan 2019-02-21 18:52:23 -08:00 committed by Andreas Schildbach
parent 19e083c017
commit fb8ac7bc6c
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -223,9 +223,9 @@ public class TransactionConfidence {
*
* <p>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.</p>
* 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.</p>
*/
public void addEventListener(Listener listener) {
addEventListener(Threading.USER_THREAD, listener);