-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide way to update the CID prefix of DAG Objects #4171
Comments
Thinking about this, its a pretty complicated thing. Doing this for files is almost entirely a separate operation than doing it on other DAGs.
It also probably makes sense to have a recursive option, update an entire graph in this way. |
Of those I think i like |
Yeah, i'm not entirely sold on |
I am okay with I don't like However, I am okay with |
There should be a way rehash or update the CID prefix of a DAG Object, both within the files API and outside. Right now #4026 provides adds an
update
command to thefiles
command which will update the prefix of the root object of directory objects. This will cause new objects to use the new prefix but existing objects will be left alone.It would also be useful to recursively update the prefix.
Both operations (updating just the root and the entire DAG) will be useful within the
files
API and standalone. The most logical place for the standalone version will likely be within thedag
sub-command.The question is what to call it. Two possibilities come to mind
update
as in update the prefix orrehash
as in recompute the hash. Since a recursive update can be very expensive (it might even retrieve objects from the network) I propose that recursion is disabled by default or separate commands be used to update just the root, vs a recursive update of the entire dag.Thoughts?
The text was updated successfully, but these errors were encountered: