@cryptotaxi247 / kubo / commits / 807b98537

Revert "fix: ensure hasher is registered when using a hashing function"

This has been superseeded by 7d0ea08289ee32ec174a2f6a8392859fe8d1977c. This reverts commit 773c246232c1f3d7fc67d7ddf5b1cb172ece8fa1.

Jorropo committed Dec 5, 2022 at 15:01 UTC 807b98537df7f3ce87974e7fca9354a7d70aa150
2 files changed -7
core/commands/add.go
-3
@@ -210,9 +210,6 @@ See 'dag export' and 'dag import' for more information.
210 if !ok {
211 return fmt.Errorf("unrecognized hash function: %q", strings.ToLower(hashFunStr))
212 }
213 - if _, err := mh.GetHasher(hashFunCode); err != nil {
214 - return err
215 - }
213
214 enc, err := cmdenv.GetCidEncoder(req)
215 if err != nil {
test/sharness/t0042-add-skip.sh
-4
@@ -93,10 +93,6 @@ EOF
93 test_cmp expected actual
94 '
95
96 - test_expect_failure "'ipfs add' with an unregistered hash and wrapped leaves fails without crashing" '
97 - ipfs add --hash poseidon-bls12_381-a2-fc1 --raw-leaves=false -r mountdir/planets
98 - '
99 -
96 }
97
98 # should work offline