mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
add hash security note
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
@ -206,7 +206,7 @@ func (s *blockService) GetBlock(ctx context.Context, c *cid.Cid) (blocks.Block,
|
||||
}
|
||||
|
||||
func getBlock(ctx context.Context, c *cid.Cid, bs blockstore.Blockstore, f exchange.Fetcher) (blocks.Block, error) {
|
||||
err := verifcid.ValidateCid(c)
|
||||
err := verifcid.ValidateCid(c) // hash security
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user