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: setup kademlia and warp sync #8

Merged
merged 15 commits into from
Aug 30, 2024
Merged

feat: setup kademlia and warp sync #8

merged 15 commits into from
Aug 30, 2024

Conversation

ablax
Copy link
Member

@ablax ablax commented Aug 28, 2024

Description

  • What does this PR do?
  • Why are these changes needed?
  • How were these changes implemented and what do they affect?

Fixes Fruzhin#495

Checklist:

  • I have read the contributing guidelines.
  • My PR title matches the Conventional Commits spec.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.


// From Smoldot implementation:
// TODO: must check that votes_ancestries doesn't contain any unused entry
// TODO: there's also a "ghost" thing?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is a bit vague

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is from the old Fruzhin. I just uncommented the class and added the verifyAsync method.

Comment on lines +62 to +64
// libp.addEventListener('peer:discovery', (evt) => console.log('Discovered:', evt.detail.id.toString()))
// libp.addEventListener('peer:connect', (evt) => console.log('Connected:', evt.detail.toString()))
// libp.addEventListener('peer:disconnect', (evt) => console.log('Disconnected:', evt.detail.toString()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intentionally left commented out?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the commented code in main.js is for testing purposes while developing the different protocols, and will be removed after all of them are done

@ablax ablax merged commit bd1797e into dev Aug 30, 2024
1 check passed
@Grigorov-Georgi Grigorov-Georgi deleted the 495-setup-kademlia branch September 10, 2024 11:33
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.

P2P communication: Set up Kademlia DHT running in the web
3 participants