Skip to content

Commit

Permalink
BitcoinSerializer: remove deprecated methods that take NetworkParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
schildbach committed Sep 2, 2024
1 parent bc7883e commit 1254011
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions core/src/main/java/org/bitcoinj/core/BitcoinSerializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
*
* <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>
*/
Expand Down Expand Up @@ -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.
*
Expand All @@ -100,17 +89,6 @@ public BitcoinSerializer(Network network) {
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.
*
Expand Down Expand Up @@ -290,14 +268,6 @@ private Message makeMessage(String command, byte[] payloadBytes, byte[] hash) th
}
}

/**
* 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.
Expand Down

0 comments on commit 1254011

Please sign in to comment.