Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

refactor: replace ipfs.add in dag.get tests #2987

Closed
wants to merge 2 commits into from
Closed

refactor: replace ipfs.add in dag.get tests #2987

wants to merge 2 commits into from

Conversation

koivunej
Copy link
Contributor

this is similar to other similar changes, we didn't start by implementing ipfs.add in rust-ipfs.

Related PR's: #2972, #2980, #2982, #2983

this is similar to other similar changes, we didn't start by
implementing `ipfs.add` in `rust-ipfs`.
achingbrain added a commit that referenced this pull request Apr 24, 2020
Implements the same change as #2987 but using the unixfs-importer
because go-ipfs does not support specifying CID versions to /block/put
so the client has to create the CID and supply it.
@achingbrain
Copy link
Member

achingbrain commented Apr 24, 2020

This looks fine, but go-ipfs is missing a version parameter from the /block/put API so cannot add blocks with a V1 CID which is why the ipfs-http-client test is failing in CI (as it runs against go-ipfs) :(

We can generate the CID on the client and send it to the block API though - I've added a second commit to #3005 which does this so it would supersede this PR.

@achingbrain
Copy link
Member

Fixed in #3005

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants