mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Message: Fix one constructor doesn't set the protocol version.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user