Skip to content

Commit

Permalink
add hash security note
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
  • Loading branch information
Kubuxu authored and magik6k committed Mar 2, 2018
1 parent 80d9eab commit 6e613d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockservice/blockservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6e613d3

Please sign in to comment.