Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Haxry
Copy link
Contributor

@Haxry Haxry commented Jun 15, 2025

Title

closes #642

Description

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

if (await this.datastore.has(pinKey)) {
throw new Error('Already pinned')
yield cid
return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure we don't want to return here. Instead, we want to walk the dag to ensure we also pin child blocks (depending on the options.depth)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helia throws when adding a block if it is already pinned
2 participants