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

feat(gossip): support ContactInfo as equivalent to LegacyContactInfo #68

Closed
wants to merge 2 commits into from

Conversation

dnut
Copy link
Contributor

@dnut dnut commented Jan 26, 2024

Fixes #65

ContactInfo was being stored in the CrdsTable but it was missing some special treatment that LegacyContactInfo gets:

  • insertion of CrdsValue is normally filtered by shred version, but LegacyContactInfo is inserted regardless of shred version
  • getAllContactInfos and getContactInfos are used for tasks like identifying which gossip peers to communicate with. these methods were only returning LegacyContactInfo

this change makes it so ContactInfo now gets the same treatment:

  • unconditional insertion into CrdsTable
  • returned from contact info methods using new EitherContactInfo tagged union

dnut added 2 commits January 26, 2024 10:40
ContactInfo was being stored in the CrdsTable but it was missing some special treatment that LegacyContactInfo gets:
- insertion of CrdsValue is normally filtered by shred version, but LegacyContactInfo is inserted regardless of shred version
- getAllContactInfos and getContactInfos are used for tasks like identifying which gossip peers to communicate with. these methods were only returning LegacyContactInfo

this change makes it so ContactInfo now gets the same treatment:
- unconditional insertion into CrdsTable
- returned from contact info methods using new EitherContactInfo tagged union
@dnut
Copy link
Contributor Author

dnut commented Feb 26, 2024

decided not to go this route with EitherContactInfo because it complicates things unnecessarily

@dnut dnut closed this Feb 26, 2024
@0xNineteen 0xNineteen deleted the dnut/crds-contact-info branch March 3, 2024 08:38
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.

Support New ContactInfo Structs
1 participant