This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Blocks used internally by pinner are provided to network by bitswap #2179
Closed
Description
Problem
The pinner uses the BlockStore to store the sets of direct and recursive pins.
At the moment any block put
to the BlockStore is sent to Bitswap, so these internal blocks are being unnecessarily provided to the network.
In the code we
- create an IPLD instance with a BlockService.
- on start, set the BlockService's exchange to be Bitswap.
- in the dag component use the IPLD instance to store DAG nodes.
- in the pinner use the dag component to store objects
Solution
I suggest we
- create an
offline
IPLD instance, which only talks to the local BlockService (not to Bitswap) - create an
offline
dag component, which uses theoffline
IPLD instance - in the pinner use the
offline
dag component