Skip to content
This repository was archived by the owner on Jul 3, 2025. It is now read-only.

Conversation

@rishiad
Copy link
Contributor

@rishiad rishiad commented Jan 23, 2025

This PR addresses the issue where larger files took an extended time to have all their pieces inserted into the Distributed Hash Table (DHT). The solution involves the following changes:

  1. DHT Insertion Timing: The DHT insertion process has been moved to the piece processing stage, which improves efficiency.
  2. Tagging Process: Tagging is now handled by the worker threads. This change ensures that only the validator who has tagged the pieces can send the challenge, making it redundant to publish the tags in the DHT.
  3. Local Tag Table: Instead of relying on the DHT for tags, we now maintain a local table of tags.

closes #41

only tagging is done on the worker threads and put into a local table
@rishiad rishiad requested review from rayokamoto and removed request for Shr1ftyy January 23, 2025 12:41
… logic

fix: correct formatting in start_piece_consumers docstring
@rishiad rishiad force-pushed the fix/inconsistent-dht branch from e118397 to 5b4d6da Compare January 23, 2025 12:49
@rishiad rishiad merged commit 25d24c4 into main Jan 23, 2025
1 check passed
@rayokamoto rayokamoto deleted the fix/inconsistent-dht branch January 23, 2025 12:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent DHT Storage with Multiple Piece Queue Consumers

2 participants