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

Gossipsub implementation #70

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

Gossipsub implementation #70

wants to merge 5 commits into from

Conversation

tinniaru3005
Copy link
Collaborator

This function facilitates the Gossipsub protocol for segment distribution among nodes. It ensures that each node receives any missing segments by checking other nodes in the network.

Creates 2 DHTs:

  • rows (dict): A hash table where the keys are row IDs and the values are lists of nodes that contain these rows.
  • cols (dict): A hash table where the keys are column IDs and the values are lists of nodes that contain these columns.

Implementation:

  • The function iterates through all row IDs and column IDs.
  • For each segment identified by a row ID (rID) and a column ID (cID):
    • It checks if the current node (self) already has the segment.
    • If the segment is missing, it attempts to receive the segment from other nodes using the Gossipsub protocol via the receiveSegmentViaGossip method.

Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
@tinniaru3005 tinniaru3005 marked this pull request as ready for review May 29, 2024 11:49
Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
Signed-off-by: Arunima Chaudhuri <arunimachaudhuri2020@gmail.com>
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.

None yet

1 participant