| 1 | package config |
| 2 | |
| 3 | // Bitswap holds Bitswap configuration options |
| 4 | type Bitswap struct { |
| 5 | // Libp2pEnabled controls if the node initializes bitswap over libp2p (enabled by default) |
| 6 | // (This can be disabled if HTTPRetrieval.Enabled is set to true) |
| 7 | Libp2pEnabled Flag `json:",omitempty"` |
| 8 | // ServerEnabled controls if the node responds to WANTs (depends on Libp2pEnabled, enabled by default) |
| 9 | ServerEnabled Flag `json:",omitempty"` |
| 10 | } |
| 11 | |
| 12 | const ( |
| 13 | DefaultBitswapLibp2pEnabled = true |
| 14 | DefaultBitswapServerEnabled = true |
| 15 | ) |