AddressEventListener, PeerGroup: add/update JavaDoc of onAddr()

This commit is contained in:
Andreas Schildbach 2023-04-03 18:25:58 +02:00
parent 5e1c556a15
commit e13e7db23c
2 changed files with 9 additions and 1 deletions

View File

@ -304,6 +304,13 @@ public class PeerGroup implements TransactionBroadcaster {
}
}
/**
* Called when a peer receives an {@code addr} or {@code addrv2} message, usually in response to a
* {@code getaddr} message.
*
* @param peer the peer that received the addr or addrv2 message
* @param message the addr or addrv2 message that was received
*/
@Override
public void onAddr(Peer peer, AddressMessage message) {
if (!vDiscoverPeersViaP2P)

View File

@ -25,7 +25,8 @@ import org.bitcoinj.core.Peer;
public interface AddressEventListener {
/**
* <p>Called when a peer receives an addr or addrv2 message, usually in response to a getaddr message.</p>
* Called when a peer receives an {@code addr} or {@code addrv2} message, usually in response to a
* {@code getaddr} message.
*
* @param peer the peer that received the addr or addrv2 message
* @param message the addr or addrv2 message that was received