mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 18:00:39 +01:00
FeeFilterMessage: remove params
and serializer
from constructor
This commit is contained in:
parent
5ea7d64ee4
commit
b2c54e8bf4
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user