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: downloadOnly option for bitswap #748

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dozyio
Copy link

@dozyio dozyio commented Feb 26, 2025

Description

Add download only option to bitswap

Notes & open questions

Thinking this should be an option for mobile clients on metered connections and also for privacy reasons.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@dozyio dozyio requested a review from a team as a code owner February 26, 2025 13:34
@dozyio
Copy link
Author

dozyio commented Feb 26, 2025

Seems Go bitswap uses a PeerBlockRequestFilter https://github.com/ipfs/boxo/blob/main/bitswap/server/internal/decision/engine.go#L252 - might be better than downloadOnly as more general purpose - any thoughts?

@dozyio dozyio marked this pull request as draft February 26, 2025 18:38
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.

1 participant