config: Flag to disable Bitswap client and server #10717
Labels
help wanted
Seeking public contribution on this issue
kind/feature
A new feature
need/triage
Needs initial labeling and prioritization
P2
Medium: Good to have, but can wait until someone steps up
topic/bitswap
Topic bitswap
topic/config
Topic config
Kubo needs an explicit configuration
Flag
for controlling if Bitswap protocol is enabled, and also if we enabled only Client or also Client+Server.Proposed feature
Add top level
Bitswap
to the config with two flagsBitswap.Enabled
controls both client and server (Flag
, enabled by default)Bitswap.ServerEnabled
controls if node responds to WANTs (Flag
, depends onBitswap.Enabled
, enabled by default)kubo/test/cli
to ensure flags truly disable itNotes:
Internal.Bitswap
but that is for super low level knobs. we keep them there.Use cases
Bitswap.Enabled=false
Reprovide.Interval=0
andGateway.NoFetch=true
and usesdag import
for populating data.Bitswap.ServerEnabled=false
The text was updated successfully, but these errors were encountered: