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

When a new user joins the libp2p network they fetch previously-sent messages #8

Open
holmesworcester opened this issue Oct 16, 2020 · 0 comments
Assignees
Labels

Comments

@holmesworcester
Copy link
Contributor

holmesworcester commented Oct 16, 2020

When a new user joins a channel, it connects to peers in such a way that it gets all previously-sent messages, or as many as possible/practical.

Possible approaches:

  1. Git fetch to one peer
  2. Git fetch to all known peers, in random order
  3. Git fetch to some random peers
  4. Broadcast an "I have joined" message, and fetch from the peer with the farthest-along HEAD?

I think 1 might be best, but it assumes all peers (or most peers) have all messages, which might not be true.

@holmesworcester holmesworcester changed the title When a new user joins a channel, they fetch all previously-sent messages When a new user joins a channel, they fetch as many as possible previously-sent messages Oct 16, 2020
@holmesworcester holmesworcester changed the title When a new user joins a channel, they fetch as many as possible previously-sent messages When a new user joins a channel, they fetch previously-sent messages Oct 16, 2020
@holmesworcester holmesworcester added this to the backlog milestone Oct 16, 2020
@holmesworcester holmesworcester changed the title When a new user joins a channel, they fetch previously-sent messages When a new user joins the libp2p network they fetch previously-sent messages Nov 17, 2020
@jkdev601 jkdev601 self-assigned this Dec 14, 2020
@jkdev601 jkdev601 added the done label Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants