-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do the bytes match the CID? For blocks whose multihash was calculated with sha2-256 (the default hashing function) we rehash each block's bytes to check it matches blocks proposed CID multihash. For other hashing functions, we allow the blocks... The cluster ipfs nodes will drop blocks that are invalid, so such DAGs wont ever be marked as pinned. It's not a good UX but at least we wont say we are storing a full DAG that was sent to us malformed. License: (Apache-2.0 AND MIT) Signed-off-by: Oli Evans <oli@tableflip.io>
- Loading branch information
Showing
3 changed files
with
73 additions
and
3 deletions.
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