Blocks are only sanity checked when debug mode is active
Open
kind/enhancement
topic/blockstore
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
https://github.com/ipfs/go-ipfs/blob/79360bbd32d8a0b9c5ab633b5a0461d9acd0f477/blocks/blocks.go#L27
This should be checked even if debug is not enabled. Otherwise malicious blocks and merkledag structures could be loaded.
Contributor guide
Assessment
This issue has not been assessed yet.