ergoplatform / ergo

Ergo protocol description & reference client implementation
https://ergoplatform.org/
Creative Commons Zero v1.0 Universal
504 stars 170 forks source link

Refactor message #2113

Closed ccellado closed 9 months ago

ccellado commented 9 months ago

Closes #2105

Removing akka.util.ByteString dependency is not possible, since all deserialization is consumed by akka.Tcp, which it's tied to. Extracted MessageBase trait from Message. Since other network solutions could require its own data classes and scorex.util.Serialization not available, due to tis specialty, it for now will be on the ergo-core library user's side to decide how to decode and encode those messages.

Node's Message serializer now requires MessageBase, so any inherited message type should work