ipld / go-ipld-adl-hamt

Other
4 stars 4 forks source link

Filecoin now uses different bitwidths for different HAMTs #18

Open Stebalien opened 3 years ago

Stebalien commented 3 years ago

https://github.com/ipld/go-ipld-adl-hamt/blob/b2c8ddbaab060c3deb13863eb9f37b9542992f64/node.go#L36-L38

mvdan commented 3 years ago

Thanks for the heads up! What version of filecoin has this characteristic, and where is it documented?

At the time the code was written I was following the stable and in-use version of Filecoin's HAMT, which I think was actors v3: https://github.com/ipld/go-ipld-adl-hamt/blob/b2c8ddbaab060c3deb13863eb9f37b9542992f64/filecoin_test.go#L9

Stebalien commented 3 years ago

Since actors v3, HAMT v3. Take a look at the AsMap calls in specs-actors.