diff --git a/core/src/main/java/org/bitcoinj/core/AddressMessage.java b/core/src/main/java/org/bitcoinj/core/AddressMessage.java index 60e673913..e34336a9a 100644 --- a/core/src/main/java/org/bitcoinj/core/AddressMessage.java +++ b/core/src/main/java/org/bitcoinj/core/AddressMessage.java @@ -17,6 +17,7 @@ package org.bitcoinj.core; import org.bitcoinj.base.VarInt; +import org.bitcoinj.net.discovery.PeerDiscovery; import java.io.IOException; import java.io.OutputStream; @@ -24,6 +25,10 @@ import java.nio.ByteBuffer; import java.util.Collections; import java.util.List; +/** + * Abstract superclass for address messages on the P2P network, which contain network addresses of other peers. This is + * one of the ways peers can find each other without using the {@link PeerDiscovery} mechanism. + */ public abstract class AddressMessage extends Message { protected static final long MAX_ADDRESSES = 1000; diff --git a/core/src/main/java/org/bitcoinj/core/AddressV1Message.java b/core/src/main/java/org/bitcoinj/core/AddressV1Message.java index 1e38d42a9..2310cca72 100644 --- a/core/src/main/java/org/bitcoinj/core/AddressV1Message.java +++ b/core/src/main/java/org/bitcoinj/core/AddressV1Message.java @@ -19,17 +19,17 @@ package org.bitcoinj.core; import org.bitcoinj.base.VarInt; import org.bitcoinj.base.internal.InternalUtils; +import org.bitcoinj.net.discovery.PeerDiscovery; import java.nio.BufferUnderflowException; import java.nio.ByteBuffer; import java.util.ArrayList; /** - *

Represents an "addr" message on the P2P network, which contains broadcast IP addresses of other peers. This is - * one of the ways peers can find each other without using the DNS or IRC discovery mechanisms. However storing and - * using addr messages is not presently implemented.

- * - *

Instances of this class are not safe for use by multiple threads.

+ * Represents an "addr" message on the P2P network, which contains broadcast IP addresses of other peers. This is + * one of the ways peers can find each other without using the {@link PeerDiscovery} mechanism. + *

+ * Instances of this class are not safe for use by multiple threads. */ public class AddressV1Message extends AddressMessage { diff --git a/core/src/main/java/org/bitcoinj/core/AddressV2Message.java b/core/src/main/java/org/bitcoinj/core/AddressV2Message.java index 825cb40bf..c5d4ef93c 100644 --- a/core/src/main/java/org/bitcoinj/core/AddressV2Message.java +++ b/core/src/main/java/org/bitcoinj/core/AddressV2Message.java @@ -18,19 +18,19 @@ package org.bitcoinj.core; import org.bitcoinj.base.VarInt; import org.bitcoinj.base.internal.InternalUtils; +import org.bitcoinj.net.discovery.PeerDiscovery; import java.nio.BufferUnderflowException; import java.nio.ByteBuffer; import java.util.ArrayList; /** - *

Represents an "addrv2" message on the P2P network, which contains broadcast IP addresses of other peers. This is - * one of the ways peers can find each other without using the DNS or IRC discovery mechanisms. However storing and - * using addrv2 messages is not presently implemented.

- * - *

See BIP155 for details.

- * - *

Instances of this class are not safe for use by multiple threads.

+ * Represents an "addrv2" message on the P2P network, which contains broadcast addresses of other peers. This is + * one of the ways peers can find each other without using the {@link PeerDiscovery} mechanism. + *

+ * See BIP155 for details. + *

+ * Instances of this class are not safe for use by multiple threads. */ public class AddressV2Message extends AddressMessage { /**