Skip to content
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
@dirkmc

Description

@dirkmc

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

  • create an offline IPLD instance, which only talks to the local BlockService (not to Bitswap)
  • create an offline dag component, which uses the offline IPLD instance
  • in the pinner use the offline dag component

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions