kubo/core/commands/dag
Marcin Rataj f3a3fceed5 feat(dag): add fast-provide support for dag import
Adds --fast-provide-root and --fast-provide-wait flags to `ipfs dag import`,
mirroring the fast-provide functionality available in `ipfs add`.

Changes:
- Add --fast-provide-root and --fast-provide-wait flags to dag import command
- Implement fast-provide logic for all root CIDs in imported CAR files
- Works even when --pin-roots=false (strategy checked internally)
- Share ExecuteFastProvide implementation between add and dag import
- Move ExecuteFastProvide to cmdenv package to avoid import cycles
- Add logging when fast-provide is disabled
- Conditional error handling: return error when wait=true, warn when wait=false
- Update config docs to mention both ipfs add and ipfs dag import
- Update changelog to use "provide" terminology and include dag import examples
- Add comprehensive test coverage (TestDagImportFastProvide with 6 test cases)

The fast-provide feature allows immediate DHT announcement of root CIDs
for faster content discovery, bypassing the regular background queue.
2025-11-14 21:54:56 +01:00
..
dag.go feat(dag): add fast-provide support for dag import 2025-11-14 21:54:56 +01:00
export.go Replace use of go-car v1 with go-car/v2 (#10845) 2025-06-23 07:18:11 -07:00
get.go feat: path consolidation (#10063) 2023-10-06 16:14:44 +02:00
import.go feat(dag): add fast-provide support for dag import 2025-11-14 21:54:56 +01:00
put.go config: introduce Import section (#10421) 2024-05-14 14:17:04 +00:00
resolve.go feat: path consolidation (#10063) 2023-10-06 16:14:44 +02:00
stat.go feat: path consolidation (#10063) 2023-10-06 16:14:44 +02:00