Skip to content

Conversation

@abread
Copy link
Contributor

@abread abread commented Aug 24, 2023

With the advent of Mir codegen and DSL modules, most events are created and handled as Mir-specific structs. However, these structs must be serialized into their protobuf counterparts to pass through the event loop and deserialized again to be fed into DSL machinery.

This (big) PR changes nearly all usages of protobuf structs into Mir-specific structs, apart from the two instances where (de)serialization is required: communicating over the network and recording/replaying events.

While integration tests using simulated/fake transports could technically forego serialization, I opted to keep the serialization and deserialization step, in order to not miss any weird corner cases related to serialization.

The PR also removes the handcrafted DSL for threshcrypto: it's not used here, I personally dropped it in favor of the autogenerated one on my work, and it's one less file to update :)

abread added 4 commits August 24, 2023 19:14
An automatically-generated DSL exists and works. No need to maintain
this one.
Also removes trivial data-type conversions that were made redundant.
@abread abread marked this pull request as draft September 19, 2023 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant