Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deduplicate types and redundant impls #144

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Conversation

dknopik
Copy link
Member

@dknopik dknopik commented Feb 17, 2025

While implementing network message passing, I noticed that we have a bunch of duplicated code - mainly network::types::ssv_message and ssv_types::message.

There were also some remnants of parallel development (and the attempted independence of qbft): MessageID vs MessageId vs MsgId and OperatorId vs OperatorID.

I now aligned those. Reasoning behind Id over ID is that it isn't an acronym, but short for Identifier.

Last, but not least: We had many locations where we manually implemented Encode and Decode - I changed this use the derive macro instead.

I do not claim that this PR is complete, there may be a few more places to optimize.

@dknopik dknopik added the ready-for-review This PR is ready to be reviewed label Feb 17, 2025
Copy link

@diegomrsantos diegomrsantos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@Zacholme7
Copy link
Member

Thanks this was on my todo list. lgtm

@dknopik dknopik merged commit d01d6d9 into sigp:unstable Feb 17, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review This PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants