mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-10-22 16:22:49 +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) {
|
protected Message(NetworkParameters params) {
|
||||||
this.params = 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 {
|
protected Message(NetworkParameters params, byte[] payload, int offset, int protocolVersion) throws ProtocolException {
|
||||||
|
Reference in New Issue
Block a user