MessageTest: remove params from VarStrMessage

This commit is contained in:
Andreas Schildbach 2023-03-30 01:19:54 +02:00
parent ed84988111
commit a3d8d24d6f

View File

@ -52,12 +52,12 @@ public class MessageTest {
public void readByteArrayOfExtremeLength() {
VarInt length = VarInt.of(Integer.MAX_VALUE);
ByteBuffer payload = ByteBuffer.wrap(length.encode());
new VarBytesMessage(TESTNET, payload);
new VarBytesMessage(payload);
}
static class VarBytesMessage extends Message {
public VarBytesMessage(NetworkParameters params, ByteBuffer payload) {
super(params, payload);
public VarBytesMessage(ByteBuffer payload) {
super(payload);
}
@Override