Open 2-towns opened 3 months ago
This is not a bug. When you create a storage request, the data is processed (erasure coding, slot creation) which requires a new CID to identify it. The old data is still accessible with the old CID, but for the purpose of tracking the persisted data, you need the new CID.
I am wondering if it would not make sense also to store the original CID? I can see how this "CID change" can be confusing to the users. Also it somewhat "breaks" the immutability promise of content-addressing, because the CID changes...
I am wondering if it would not make sense also to store the original CID? I can see how this "CID change" can be confusing to the users. Also it somewhat "breaks" the immutability promise of content-addressing, because the CID changes...
Yes definitely.
After creating the storage request on the marketplace UI, the list of purchases is refreshed. So if another CID appears for the request created, I am sure it will create some confusion for the user.
I guess the reason why we didn't return the original CID is because it's needed to initiate the request in the first place. The original CID is part of the protected/verifiable manifest tho.
Describe the bug When I retrieve the purchase details for a storage request, the CID returned in the content element of the json is different from the CID I used to make the storage request.
To Reproduce Steps to reproduce the behavior:
Expected behavior The CID should be the same as the uploaded file.
Screenshots
The json is :
Environment: