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: refactor p2p node & merge retrieval functionality #785

Merged
merged 10 commits into from
Feb 28, 2025

Conversation

cernicc
Copy link
Member

@cernicc cernicc commented Feb 27, 2025

Description

The PR looks bigger than it is. It refactors the p2p part of the storage provider node and merges retrieval server functionality to the same Behaviour. That was needed because, when the provider node registers its public multiaddress to the rendezvous node. That multiaddress is returned by the rendezvous node when the client requests a peer_id to multiaddress mapping.

This brings us a step closer to resolving the content based on the deal_id. Next part is indexing deals with cooresponding payload cids. That mapping should probably be exposed over request_response protocol. The p2p protocol for that is needed because client will already be connected to the provider's node before starting the block retrieval. --- The missing part for the client is figuring out which block to request first.

Checklist

  • Make sure that you described what this change does.
  • Have you tested this solution?
  • Were there any alternative implementations considered?
    Many. This is the least ugly one.
  • Did you document new (or modified) APIs?

@cernicc cernicc added the ready for review Review is needed label Feb 28, 2025
@cernicc cernicc enabled auto-merge (squash) February 28, 2025 11:40
@cernicc cernicc merged commit 19a1ec3 into develop Feb 28, 2025
12 checks passed
@cernicc cernicc deleted the feat/p2p_refactor branch February 28, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Review is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants