-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Blocks used internally by pinner are provided to network by bitswap #2179
Comments
@vasco-santos @alanshaw please let me know your thoughts about this approach |
Hey @dirkmc I have been thinking after our conversation today, and despite not liking the solution of having 2 instances of |
Thanks @vasco-santos The go implementation creates the second instance of |
Just making a note here that @alanshaw suggested we should make sure there aren't any issues with locking or memory usage. In particular check that when IPLD lazy loads formats, it doesn't unnecessarily load formats twice. |
Fixed by #2196 |
js-ipfs is being deprecated in favor of Helia. You can learn more about this deprecation and read the migration guide. Please feel to reopen with any comments by 2023-06-02. We will do a final pass on reopened issues afterwards (see #4336). This issue is most likely resolved in Helia, please try it out! |
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
Solution
I suggest we
offline
IPLD instance, which only talks to the local BlockService (not to Bitswap)offline
dag component, which uses theoffline
IPLD instanceoffline
dag componentThe text was updated successfully, but these errors were encountered: