3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +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")) {
return new HeadersMessage(params, payloadBytes);
} 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)
message.setChecksum(checksum);