mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 09:50:32 +01:00
AddressEventListener, PeerGroup: add/update JavaDoc of onAddr()
This commit is contained in:
parent
5e1c556a15
commit
e13e7db23c
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user