@cryptotaxi247 / kubo / commits / f1125f006

add hash security note

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed Mar 2, 2018 at 23:54 UTC f1125f006625cf86f0b51e99c7e3d853595c37e4
1 file changed +1 -1
blockservice/blockservice.go
+1 -1
@@ -206,7 +206,7 @@ func (s *blockService) GetBlock(ctx context.Context, c *cid.Cid) (blocks.Block,
206 }
207
208 func getBlock(ctx context.Context, c *cid.Cid, bs blockstore.Blockstore, f exchange.Fetcher) (blocks.Block, error) {
209 - err := verifcid.ValidateCid(c)
209 + err := verifcid.ValidateCid(c) // hash security
210 if err != nil {
211 return nil, err
212 }