Skip to content

Commit

Permalink
Update denylist.go
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Rataj <[email protected]>
  • Loading branch information
hsanjuan and lidel authored Dec 13, 2024
1 parent 5a1e055 commit fdcaa91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion denylist.go
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ func (dl *Denylist) isIPFSIPLDPathBlocked(cidStr, subpath, protocol string) Stat
v1b32 := cid.NewCidV1(prefix.Codec, c.Hash()).String() // base32 string
v1b32path := v1b32
// badbits appends / on empty subpath. and hashes that
// https://github.com/protocol/badbits.dwebops.pub/blob/main/badbits-lambda/helpers.py#L17
// https://specs.ipfs.tech/compact-denylist-format/#double-hash
v1b32path += "/" + subpath
status, entry, err = dl.checkDoubleHashWithFn("IsIPFSIPLDPathBlocked (legacy)", v1b32path, multihash.SHA2_256)
if status != StatusNotFound { // hit or error
Expand Down

0 comments on commit fdcaa91

Please sign in to comment.