diff --git a/src/Neo/Network/P2P/RemoteNode.cs b/src/Neo/Network/P2P/RemoteNode.cs index 11480c82af..f9e987dc5a 100644 --- a/src/Neo/Network/P2P/RemoteNode.cs +++ b/src/Neo/Network/P2P/RemoteNode.cs @@ -234,7 +234,9 @@ internal static Props Props(NeoSystem system, LocalNode localNode, object connec private void SendMessage(Message message) { ack = false; - SendData(ByteString.FromBytes(message.ToArray(Version.AllowCompression))); + // Here it is possible that we dont have the Version message yet, + // so we need to send the message uncompressed + SendData(ByteString.FromBytes(message.ToArray(Version?.AllowCompression ?? false))); sentCommands[(byte)message.Command] = true; }