Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Cannot read data after write with cidVersion=1 #12

Closed
alanshaw opened this issue Sep 24, 2018 · 3 comments
Closed

Cannot read data after write with cidVersion=1 #12

alanshaw opened this issue Sep 24, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@alanshaw
Copy link

No description provided.

@alanshaw alanshaw added the bug Something isn't working label Sep 24, 2018
alanshaw pushed a commit to ipfs-shipyard/ipfsx that referenced this issue Sep 24, 2018
Currently we cannot default CID version to 1 in MFS write as read will hang. ipfs-inactive/js-ipfs-mfs#12

License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@achingbrain
Copy link
Collaborator

It seems this is because nodes added to IPFS using v1 CIDs are returned from ipld.dag.get with v0 CIDs. See ipld/js-ipld#157

@achingbrain
Copy link
Collaborator

Could you try again with v0.5.1? There's now a test that writes with a v1 CID and reads the data back which passes.

@achingbrain
Copy link
Collaborator

This should be fixed now, please re-open if it's not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants