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

Lightweight DDO Compatibility: Spark Piece Indexer #143

Open
1 of 4 tasks
bajtos opened this issue Jul 26, 2024 · 0 comments
Open
1 of 4 tasks

Lightweight DDO Compatibility: Spark Piece Indexer #143

bajtos opened this issue Jul 26, 2024 · 0 comments

Comments

@bajtos
Copy link
Contributor

bajtos commented Jul 26, 2024

eta: 2024-09-30

In Filecoin, the main unit for storing user data is Piece, as identified by Piece CID (see Filecoin Spec). On the other hand, the data retrieval process operates at the payload level. The client requests data using a Payload CID and receives back the IPLD DAG of the payload.

The on-chain state, events, and history only provide the PieceCID information about stored data. Retrieval probes like Spark need to map PieceCID to PayloadCIDs to probe for retrievability. There is no straightforward solution for such mapping right now.

In the longer term, we are working with IPNI & Boost projects to provide a way to sample payload block CIDs in a given deal. That project will take several months to complete.

Let's build a lightweight alternative to bridge the time until the proper solution is available, and enable Spark to test DDO deals sooner.

Resources:

Tasks

indexer

  • Initial implementation
  • Monitoring for whether the indexer is behind or in sync with the chain. Eg track the age of the latest advertisement minus the age of the latest ingested advertisement
  • Sentry integration

REST API

  • Initial implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant