KenCloud-Tech / go-ipld-prolly-trees

golang implementation of probabilistic merkle search trees for IPLD
Apache License 2.0
13 stars 0 forks source link

Error: hashes must be at least 20 bytes long #8

Closed SionoiS closed 1 year ago

SionoiS commented 1 year ago

I'm trying to import the .car fixtures in IPFS but i get this error. Error: hashes must be at least 20 bytes long IPFS v0.19.1

sssion commented 1 year ago

Hi, can you give more detail about the case? I mean where you met Error: hashes must be at least 20 bytes long ? Some IPFS command action about the the car file ?

SionoiS commented 1 year ago

I downloaded the .car in the fixture folder and used ipfs dag import tree.car

sssion commented 1 year ago

OK, I commit and resolve the problem. It's caused by the DefaultLinkProto, I set the MhLength as 16, and is smaller than the ipfs dag import smallest length