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:
parent
7774bf4aa4
commit
a67909bebf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user