ChainSafe / gossamer

🕸️ Go Implementation of the Polkadot Host
https://chainsafe.github.io/gossamer
GNU Lesser General Public License v3.0
433 stars 116 forks source link

decode messages to wire message #4188

Closed kishansagathiya closed 1 month ago

kishansagathiya commented 2 months ago

collation protocol and validation protocol uses messages wrapped as wiremessage. So we had to adjust our decoder and handler functions according to that.

Apart from this I have also added message type to wire message struct. Since wire message could be collation message or validation message, I have chose to manually set this as a value instead of returning a hardcoded value.

Changes

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

4108