diff --git a/src/com/google/bitcoin/core/BitcoinSerializer.java b/src/com/google/bitcoin/core/BitcoinSerializer.java index 627881a8..960b7fe6 100644 --- a/src/com/google/bitcoin/core/BitcoinSerializer.java +++ b/src/com/google/bitcoin/core/BitcoinSerializer.java @@ -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);