Skip to content
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

merkledag: retain cid types when roundtripping through a ProtoNode #3443

Merged
merged 2 commits into from
Dec 5, 2016

Conversation

whyrusleeping
Copy link
Member

Should address #3431

License: MIT
Signed-off-by: Jeromy why@ipfs.io

@whyrusleeping whyrusleeping added the status/in-progress In progress label Nov 29, 2016
@whyrusleeping whyrusleeping added this to the ipld integration milestone Nov 29, 2016
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@whyrusleeping
Copy link
Member Author

@mib-kd743naq wanna verify that this solves the problems youre seeing in #3427 #3431 ?

@whyrusleeping whyrusleeping assigned ghost and Kubuxu Dec 1, 2016
@whyrusleeping whyrusleeping added the need/review Needs a review label Dec 1, 2016
@ghost
Copy link

ghost commented Dec 2, 2016

Given that this fixes #3427 and #3431, LGTM 👍

Copy link
Contributor

@kevina kevina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for one thing I am not 100% sure about. See comment.


var defaultCidPrefix = cid.Prefix{
Codec: cid.DagProtobuf,
MhLength: -1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this really be -1? Does it get set somewhere else. Just double checking, so if you know this is correct than don't worry about it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 implies "use default length".

@whyrusleeping whyrusleeping merged commit 0814a99 into master Dec 5, 2016
@whyrusleeping whyrusleeping deleted the feat/retain-cid-type branch December 5, 2016 00:30
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Dec 5, 2016
@ghost ghost mentioned this pull request Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/review Needs a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants