3
0
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:
Mike Hearn 2011-12-16 14:24:03 +01:00
parent 7774bf4aa4
commit a67909bebf

View File

@ -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);