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

Make node-type in kbuckets generic #209

Closed
wants to merge 2 commits into from
Closed

Make node-type in kbuckets generic #209

wants to merge 2 commits into from

Conversation

0xcrust
Copy link

@0xcrust 0xcrust commented Aug 3, 2023

Description

Support generic node-types in k-buckets.

  • Introduce a AsNode NodeRecord trait.
  • Modify KbucketsTable & DiscV5 struct-defs and methods to be generic over types that implement this trait.

Notes & open questions

This is a draft PR to set in motion the ideas proposed in #193 . The complete discussion can be found here.

Change checklist

  • Self-review
  • Documentation updates if relevant
  • Tests if relevant

@0xcrust 0xcrust marked this pull request as draft August 3, 2023 20:56
@0xcrust 0xcrust closed this Aug 8, 2023
@0xcrust
Copy link
Author

0xcrust commented Aug 8, 2023

Turns out that I had a poor understanding of the issue this sought to address, and this is a far from ideal solution. Closed for that reason

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