This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds onlyHash option to ipld.put
IPLD and it's resolvers are the gatekeepers of creating CIDs from nodes. IPFS has variations on `onlyHash` parameters that can be passed to CLI commands, the intention of which is to return a CID for a given node and not write it to a block store. Since IPLD guards the block store and the generation of CIDs, we have to reach deep into it's heart to peform this. It makes sense that this should occur further down the stack so this PR adds an `onlyHash` option to `ipld.put` to accomplish this.
- Loading branch information
1 parent
be77abd
commit 0c78f0e
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters