ipfs-cluster/test
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
..
cids.go Adder: fix #1006: Specify block format, hash and length when adding 2020-03-13 14:43:58 +01:00
ipfs_mock.go Adder: fix #1006: Specify block format, hash and length when adding 2020-03-13 14:43:58 +01:00
rpc_api_mock.go pintracker: take care of tests 2019-12-13 12:03:01 +01:00
sharding.go Handle wrapping outside the ipfs adder 2019-10-01 12:19:22 +02:00
test_test.go Feat: Split components into RPC Services 2019-05-04 21:36:10 +01:00
test.go Add/improve godoc descriptions for some modules. 2018-08-23 14:14:06 +02:00