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/add accuracy metric to lookup #22

Merged
merged 3 commits into from
Aug 14, 2023
Merged

Conversation

cortze
Copy link
Owner

@cortze cortze commented Aug 14, 2023

Motivation

With all the error rates that we want to try to sim, there is a huge need to monitor the quality of the lookups.

Related links:
#15

Description

This PR adds a new method to the DHTnetwork that returns the closest nodes to a given Hash.
It also uses the same method to calculate the accuracy of the lookup, returning it in the summary.

Tasks

  • add a new method to DHTnetwork that returns the closest nodes to a key
  • add the accuracy of the lookup to the summary
  • Improve some testing

Proof of Success

tests happy (fix some flaky ones that had a few chances to fail (due to the error rate))

@cortze cortze merged commit 5391326 into main Aug 14, 2023
6 checks passed
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