Message: Fix one constructor doesn't set the protocol version.

This commit is contained in:
Andreas Schildbach
2019-01-29 15:16:28 +01:00
parent 4d4c68bb70
commit 9e46997159

View File

@@ -68,7 +68,8 @@ public abstract class Message {
protected Message(NetworkParameters params) {
this.params = params;
serializer = params.getDefaultSerializer();
this.protocolVersion = params.getProtocolVersionNum(NetworkParameters.ProtocolVersion.CURRENT);
this.serializer = params.getDefaultSerializer();
}
protected Message(NetworkParameters params, byte[] payload, int offset, int protocolVersion) throws ProtocolException {