diff --git a/core/src/main/java/org/bitcoinj/core/AddressMessage.java b/core/src/main/java/org/bitcoinj/core/AddressMessage.java index a3332687..14308381 100644 --- a/core/src/main/java/org/bitcoinj/core/AddressMessage.java +++ b/core/src/main/java/org/bitcoinj/core/AddressMessage.java @@ -39,15 +39,13 @@ public class AddressMessage extends Message { * Contruct a new 'addr' message. * @param params NetworkParameters object. * @param offset The location of the first payload byte within the array. - * @param parseRetain Whether to retain the backing byte array for quick reserialization. - * If true and the backing byte array is invalidated due to modification of a field then - * the cached bytes may be repopulated and retained if the message is serialized again in the future. + * @param serializer the serializer to use for this block. * @param length The length of message if known. Usually this is provided when deserializing of the wire * as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH * @throws ProtocolException */ - AddressMessage(NetworkParameters params, byte[] payload, int offset, MessageSerializer setSerializer, int length) throws ProtocolException { - super(params, payload, offset, setSerializer, length); + AddressMessage(NetworkParameters params, byte[] payload, int offset, MessageSerializer serializer, int length) throws ProtocolException { + super(params, payload, offset, serializer, length); } /** diff --git a/core/src/main/java/org/bitcoinj/core/LegacyAddress.java b/core/src/main/java/org/bitcoinj/core/LegacyAddress.java index 06edc442..dfc1c7ad 100644 --- a/core/src/main/java/org/bitcoinj/core/LegacyAddress.java +++ b/core/src/main/java/org/bitcoinj/core/LegacyAddress.java @@ -58,8 +58,8 @@ public class LegacyAddress extends Address { * * @param params * network this address is valid for - * @param version - * version header of the address + * @param p2sh + * true if hash160 is hash of a script, false if it is hash of a pubkey * @param hash160 * 20-byte hash of pubkey or script */ diff --git a/core/src/main/java/org/bitcoinj/core/UTXOProvider.java b/core/src/main/java/org/bitcoinj/core/UTXOProvider.java index 22fbf2d9..f956ceb4 100644 --- a/core/src/main/java/org/bitcoinj/core/UTXOProvider.java +++ b/core/src/main/java/org/bitcoinj/core/UTXOProvider.java @@ -36,7 +36,7 @@ public interface UTXOProvider { /** * Get the height of the chain head. * @return The chain head height. - * @throws UTXOProvider If there is an error. + * @throws UTXOProviderException If there is an error. */ int getChainHeadHeight() throws UTXOProviderException; diff --git a/core/src/main/java/org/bitcoinj/script/Script.java b/core/src/main/java/org/bitcoinj/script/Script.java index e84a75b7..dc7543e6 100644 --- a/core/src/main/java/org/bitcoinj/script/Script.java +++ b/core/src/main/java/org/bitcoinj/script/Script.java @@ -686,7 +686,7 @@ public class Script { /** * Cast a script chunk to a BigInteger. * - * @see #castToBigInteger(byte[], int) for values with different maximum + * @see #castToBigInteger(byte[], int, boolean) for values with different maximum * sizes. * @throws ScriptException if the chunk is longer than 4 bytes. */ @@ -696,7 +696,7 @@ public class Script { /** * Cast a script chunk to a BigInteger. Normally you would want - * {@link #castToBigInteger(byte[])} instead, this is only for cases where + * {@link #castToBigInteger(byte[], boolean)} instead, this is only for cases where * the normal maximum length does not apply (i.e. CHECKLOCKTIMEVERIFY, CHECKSEQUENCEVERIFY). * * @param maxLength the maximum length in bytes.