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

fix(discv5): fix bug flip byte lookup tgt #7764

Merged
merged 10 commits into from Apr 20, 2024
Merged

fix(discv5): fix bug flip byte lookup tgt #7764

merged 10 commits into from Apr 20, 2024

Conversation

emhane
Copy link
Member

@emhane emhane commented Apr 19, 2024

  • Flips index 0 (log2distance 1) in lookup target selection. Previously the code was taking log2distance as param, now it takes kbucket index as param to be easier to follow along.
  • Fixes flaky test at boundary where log2distance is a multiple of 8

leaving bit flipping up to closes #7763

@emhane emhane changed the title fix(discv5): fix bug flip bit lookup tgt fix(discv5): fix bug flip byte lookup tgt Apr 19, 2024
@mattsse mattsse added the A-networking Related to networking in general label Apr 20, 2024
crates/net/discv5/src/lib.rs Outdated Show resolved Hide resolved
crates/net/discv5/src/lib.rs Outdated Show resolved Hide resolved
emhane and others added 3 commits April 20, 2024 18:49
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
@emhane emhane requested a review from DaniPopes April 20, 2024 17:35
@emhane emhane added this pull request to the merge queue Apr 20, 2024
Merged via the queue into main with commit d81cf8a Apr 20, 2024
27 checks passed
@emhane emhane deleted the emhane/fix-lookup-tgt branch April 20, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(discv5): flip exact bit in node id
4 participants