ipfs-cluster/adder
Hector Sanjuan ede1b89252 Adder: fix #1006: Specify block format, hash and length when adding
Currently we were only specifying the block format. When adding with
a custom hash function, even though we produced the right cids, IPFS
did not know the hash function and ended up storing them using SHA256.

Additionally, since NodeWithMeta serializes the CID, we do not need
to carry a Format parameter (which specifies the Codec): it is already
embedded.

Tests have been added and BlockPut in ipfshttp now checks that the
response's CID matches the data sent. This will catch errors like
what was happening, but also any data corruption between cluster and
IPFS during the block upload.
2020-03-13 14:43:58 +01:00
..
adderutils No need to use separate dag service for local add 2019-08-31 19:40:56 +05:30
ipfsadd fix: Fix typos (#1001) 2020-02-03 10:30:04 +01:00
sharding fix: Fix typos (#1001) 2020-02-03 10:30:04 +01:00
single Allocate in the beginning for local as well 2019-09-18 13:21:04 +05:30
adder_test.go Fix #852: Improve error handling on add 2019-08-13 16:06:20 +02:00
adder.go fix: Fix typos (#1001) 2020-02-03 10:30:04 +01:00
util.go Adder: fix #1006: Specify block format, hash and length when adding 2020-03-13 14:43:58 +01:00