Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
*
* @default to `false`
*/
downloadOnly?: boolean
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
downloadOnly?: boolean
leechMode?: boolean

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.

2 participants