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

Remove associated type PubsubId from ValidatorNetwork #2157

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

nibhar
Copy link
Member

@nibhar nibhar commented Jan 27, 2024

Instead a type alias is added.

The reason is that before this the types of TValidatorNetwork::PubsubId and TvalidatorNetwork::NetworkType::PubsubId are not guaranteed to be the same. There would be other ways of enforcing this with additional traits but the alias seemed the easiest solution.

@nibhar nibhar added this to the Nimiq PoS Mainnet milestone Jan 27, 2024
@nibhar nibhar requested a review from hrxi January 27, 2024 15:15
@nibhar nibhar self-assigned this Jan 27, 2024
@nibhar nibhar requested a review from jsdanielh January 27, 2024 15:16
Instead a type alias is added.

The reason is that before this the types of
`TValidatorNetwork::PubsubId` and `TvalidatorNetwork::NetworkType::PubsubId` are not guaranteed to be the same. There would be other ways of enforcing this with additional traits but the alias seemed the easiest solution.
@jsdanielh jsdanielh force-pushed the nibhar/validator-pubsubid branch from d5519a3 to 209e971 Compare January 27, 2024 17:05
@hrxi hrxi merged commit 209e971 into albatross Jan 27, 2024
6 checks passed
@hrxi hrxi deleted the nibhar/validator-pubsubid branch January 27, 2024 17:45
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.

3 participants