BitcoinSerializer: remove deprecated methods that take NetworkParameters

This commit is contained in:
Andreas Schildbach 2024-09-02 20:16:51 +02:00
parent 89bc342f9f
commit fe1a574d9b

View File

@ -42,7 +42,6 @@ import static org.bitcoinj.base.internal.Preconditions.check;
*
* <ul>
* <li>The proper Class instance needs to be mapped to its message name in the names variable below</li>
* <li>There needs to be a constructor matching: NetworkParameters params, byte[] payload</li>
* <li>Message.bitcoinSerializeToStream() needs to be properly subclassed</li>
* </ul>
*/
@ -81,16 +80,6 @@ public class BitcoinSerializer extends MessageSerializer {
names.put(FeeFilterMessage.class, "feefilter");
}
/**
* Constructs a BitcoinSerializer with the given behavior.
*
* @param params networkParams used to determine packetMagic
*/
@Deprecated
public BitcoinSerializer(NetworkParameters params) {
this(params.network());
}
/**
* Constructs a BitcoinSerializer with the given behavior.
*
@ -100,17 +89,6 @@ public class BitcoinSerializer extends MessageSerializer {
this(network, ProtocolVersion.CURRENT.intValue());
}
/**
* Constructs a BitcoinSerializer with the given behavior.
*
* @param params networkParams used to determine packetMagic
* @param protocolVersion the protocol version to use
*/
@Deprecated
public BitcoinSerializer(NetworkParameters params, int protocolVersion) {
this(params.network, protocolVersion);
}
/**
* Constructs a BitcoinSerializer with the given behavior.
*
@ -290,14 +268,6 @@ public class BitcoinSerializer extends MessageSerializer {
}
}
/**
* Get the network parameters for this serializer.
*/
@Deprecated
public NetworkParameters getParameters() {
return NetworkParameters.of(network);
}
/**
* Make an address message from the payload. Extension point for alternative
* serialization format support.