diff --git a/pkg/network/message.go b/pkg/network/message.go index bb9d86f3f..368d69cc9 100644 --- a/pkg/network/message.go +++ b/pkg/network/message.go @@ -213,7 +213,8 @@ func (m *Message) tryCompressPayload() error { compressedPayload := buf.Bytes() if m.Flags&Compressed == 0 { switch m.Payload.(type) { - case *payload.Headers, *payload.MerkleBlock, *payload.NullPayload: + case *payload.Headers, *payload.MerkleBlock, *payload.NullPayload, + *payload.Inventory: break default: size := len(compressedPayload)