mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
Don't throw an exception when parsing an unknown message type.
This commit is contained in:
parent
7774bf4aa4
commit
a67909bebf
@ -335,7 +335,8 @@ public class BitcoinSerializer {
|
|||||||
} else if (command.equals("headers")) {
|
} else if (command.equals("headers")) {
|
||||||
return new HeadersMessage(params, payloadBytes);
|
return new HeadersMessage(params, payloadBytes);
|
||||||
} else {
|
} else {
|
||||||
throw new ProtocolException("No support for deserializing message with name " + command);
|
log.warn("No support for deserializing message with name {}", command);
|
||||||
|
return new UnknownMessage(params, command, payloadBytes);
|
||||||
}
|
}
|
||||||
if (checksum != null)
|
if (checksum != null)
|
||||||
message.setChecksum(checksum);
|
message.setChecksum(checksum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user