FeeFilterMessage: remove params and serializer from constructor

This commit is contained in:
Andreas Schildbach 2023-03-29 23:51:13 +02:00
parent 5ea7d64ee4
commit b2c54e8bf4
2 changed files with 3 additions and 3 deletions

View File

@ -260,7 +260,7 @@ public class BitcoinSerializer extends MessageSerializer {
check(!payload.hasRemaining(), ProtocolException::new);
return new SendHeadersMessage();
} else if (command.equals("feefilter")) {
return new FeeFilterMessage(params, payload, this);
return new FeeFilterMessage(payload);
} else {
check(!payload.hasRemaining(), ProtocolException::new);
return new UnknownMessage(command);

View File

@ -37,8 +37,8 @@ import static org.bitcoinj.base.internal.Preconditions.check;
public class FeeFilterMessage extends Message {
private Coin feeRate;
public FeeFilterMessage(NetworkParameters params, ByteBuffer payload, BitcoinSerializer serializer) {
super(params, payload, serializer);
public FeeFilterMessage(ByteBuffer payload) {
super(payload);
}
@Override