Skip to content

Commit

Permalink
Merge branch 'master' into feat.scan-readonly-storeview
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Jan 24, 2025
2 parents 1eb7e1e + 60d56f8 commit eb26415
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Neo/Network/P2P/RemoteNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit eb26415

Please sign in to comment.