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
magik6k committed Mar 2, 2018
1 parent e3127f8 commit edd60bf
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 edd60bf

Please sign in to comment.